Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #16347

Re: NetBeans Application with sortable Table and pre-existing frame/table code

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From clusardi2k@aol.com
Newsgroups comp.lang.java.programmer
Subject Re: NetBeans Application with sortable Table and pre-existing frame/table code
Date Wed, 25 Jul 2012 08:37:20 -0700 (PDT)
Organization http://groups.google.com
Lines 24
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>
NNTP-Posting-Host 198.151.13.60
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1343230731 19215 127.0.0.1 (25 Jul 2012 15:38:51 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Wed, 25 Jul 2012 15:38:51 +0000 (UTC)
In-Reply-To <ff39b71a-20af-45b7-9123-4403d6e8b6d0@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=198.151.13.60; posting-account=r24XpwkAAABfAJg5TJRsTScS4AL5MjOT
User-Agent G2/1.0
Xref csiph.com comp.lang.java.programmer:16347

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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