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: 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 I have an NetBeans application with a few controls. To this, I dragged a Sw= ing Table control from the control palette. I'd like to use all of these an= d not use the below code. The reason I don't want to use the below example is I cannot use the dragge= d 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-exist= ing frame. But, when I try to do that I get error messages such as "non-sta= tic method add (...) cannot be referenced from a static context". I even tr= ied instantiating a class object, but received similar error messages. http://www.java-tips.org/java-se-tips/javax.swing/sorting-and-filtering-tab= les.html This linked example creates a table (columns which are sortable) but the ne= w window is not docked anywhere. Do you have a better example for me. Thanks,