Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #16347
| From | clusardi2k@aol.com |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: NetBeans Application with sortable Table and pre-existing frame/table code |
| Date | 2012-07-25 08:37 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <8938292b-a43a-40a9-8fc6-721aceffd12f@googlegroups.com> (permalink) |
| References | <e4d9d3b6-0457-45c8-9bf3-6f7bbe0da09a@googlegroups.com> <2c4cb42d-92d9-48a6-9d69-0f63c5461070@googlegroups.com> <ff39b71a-20af-45b7-9123-4403d6e8b6d0@googlegroups.com> |
The below 2 additional attempts also are failing (each yields the same result). jInternalFrame1 (class JInternalFrame) was dragged to the designer form from the NetBeans swing Palette.
(Another Attempt)
JTable jTable1 = new JTable(model);
RowSorter<TableModel> sorter =
new TableRowSorter<TableModel>(model);
jTable1.setRowSorter(sorter);
JScrollPane pane = new JScrollPane(jTable1);
//frame.add(pane, BorderLayout.CENTER);
//frame.setSize(300, 150);
jInternalFrame1.add(pane, BorderLayout.CENTER);
jInternalFrame1.setVisible(true);
(And Yet Another Unsuccessful Attempt)
//JTable table = new JTable(model);
RowSorter<TableModel> sorter =
new TableRowSorter<TableModel>(model);
jTable1.setRowSorter(sorter);
JScrollPane pane = new JScrollPane(jTable1);
//frame.add(pane, BorderLayout.CENTER);
//frame.setSize(300, 150);
jInternalFrame1.add(pane, BorderLayout.CENTER);
jInternalFrame1.setVisible(true);
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
NetBeans Application with sortable Table and pre-existing frame/table code clusardi2k@aol.com - 2012-07-23 10:54 -0700
Re: NetBeans Application with sortable Table and pre-existing frame/table code Lew <lewbloch@gmail.com> - 2012-07-23 12:55 -0700
Re: NetBeans Application with sortable Table and pre-existing frame/table code clusardi2k@aol.com - 2012-07-25 07:54 -0700
Re: NetBeans Application with sortable Table and pre-existing frame/table code clusardi2k@aol.com - 2012-07-25 08:14 -0700
Re: NetBeans Application with sortable Table and pre-existing frame/table code clusardi2k@aol.com - 2012-07-25 08:37 -0700
Re: NetBeans Application with sortable Table and pre-existing frame/table code Nigel Wade <nmw@ion.le.ac.uk> - 2012-07-25 16:40 +0100
Re: NetBeans Application with sortable Table and pre-existing frame/table code clusardi2k@aol.com - 2012-07-25 09:31 -0700
csiph-web