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


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

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

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From clusardi2k@aol.com
Newsgroups comp.lang.java.programmer
Subject NetBeans Application with sortable Table and pre-existing frame/table code
Date Mon, 23 Jul 2012 10:54:19 -0700 (PDT)
Organization http://groups.google.com
Lines 20
Message-ID <e4d9d3b6-0457-45c8-9bf3-6f7bbe0da09a@googlegroups.com> (permalink)
NNTP-Posting-Host 198.151.13.60
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Trace posting.google.com 1343066060 12532 127.0.0.1 (23 Jul 2012 17:54:20 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Mon, 23 Jul 2012 17:54:20 +0000 (UTC)
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
X-Received-Bytes 1875
Xref csiph.com comp.lang.java.programmer:16250

Show key headers only | View raw


I have an NetBeans application with a few controls. To this, I dragged a Swing Table control from the control palette. I'd like to use all of these and not use the below code.

The reason I don't want to use the below example is I cannot use the dragged in table above. I unsuccessfully tried to modify this code (the frame and table variable names) to use the above dragged-in table with its pre-existing frame. But, when I try to do that I get error messages such as "non-static method add (...) cannot be referenced from a static context". I even tried instantiating a class object, but received similar error messages.

http://www.java-tips.org/java-se-tips/javax.swing/sorting-and-filtering-tables.html

This linked example creates a table (columns which are sortable) but the new window is not docked anywhere.

Do you have a better example for me.

Thanks,

Back to comp.lang.java.programmer | Previous | NextNext 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