Re: NetBeans Application with sortable Table and pre-existing
frame/table code
(unknown) wrote:
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 th=
ese 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 fra=
me 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 &q=
uot;non-static method add (...) cannot be referenced from a static context&=
quot;. I even tried instantiating a class object, but received similar erro=
r messages.
Each of those error messages can be solved by analysis and the right code c=
hanges.
Giving up on error messages is a recipe for failure.
http://www.java-tips.org/java-se-tips/javax.swing/sorting-and-filtering-t=
ables.html
Where's *your* code?
http://sscce.org/
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.
Do you have a better example for us?
--
Lew