>> - each time something changes, you
>> alter that array and revalidate the JTable
>>
> Can you please explain "revalidate the JTable"
> ie can you givce the line of code?
Please consider working through Sun's GUI tutorial.
/Thomas

Signature
The comp.lang.java.gui FAQ:
http://gd.tuwien.ac.at/faqs/faqs-hierarchy/comp/comp.lang.java.gui/
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
"gbruno" <ctskinner@gmail.com> wrote in news:1163648967.379835.253280
@b28g2000cwb.googlegroups.com:
>> - each time something changes, you
>> alter that array and revalidate the JTable
>>
> Can you please explain "revalidate the JTable"
> ie can you givce the line of code?
Hi,
Have a look at the following article I've put online yesterday:
http://jcsnippets.atspace.com/java/gui-graphics/creating-a-custom-
tablemodel-for-a-jtable.html
As for revalidation, call the method "revalidate()". You can find more
information on this in the Java Docs:
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JComponent.html#reval
idate()
Also, setting a new model for the JTable will have the same effect.
Best regards,
JayCee

Signature
http://jcsnippets.atspace.com/
a collection of source code, tips and tricks
Andrew Thompson - 17 Nov 2006 14:52 GMT
...
> Have a look at the following article I've put online yesterday:
> http://jcsnippets.atspace.com/java/gui-graphics/creating-a-custom-
> tablemodel-for-a-jtable.html
When posting long URL's, they can be protected
from line wrapping by enclosing in '<', '>'. E.G.
<http://jcsnippets.atspace.com/java/gui-graphics/creating-a-custom-tablemodel-for
-a-jtable.html>
Andrew T.
jcsnippets.atspace.com - 19 Nov 2006 15:23 GMT
<snip>
> When posting long URL's, they can be protected
> from line wrapping by enclosing in '<', '>'.
Thank you for the tip, Andrew - I did not know that. Very handy!
Best regards,
JayCee

Signature
http://jcsnippets.atspace.com/
a collection of source code, tips and tricks
John W. Kennedy - 21 Nov 2006 00:37 GMT
> ....
>> Have a look at the following article I've put online yesterday:
[quoted text clipped - 4 lines]
> from line wrapping by enclosing in '<', '>'. E.G.
> <http://jcsnippets.atspace.com/java/gui-graphics/creating-a-custom-tablemodel-for
-a-jtable.html>
Actually,
<URL:http://jcsnippets.atspace.com/java/gui-graphics/creating-a-custom-tablemodel-for
-a-jtable.html>
is often safer. It was once the official standard for quoting URLs in
plain text, but was dropped in a later RFC simply because few people
were using it; however, it is still supported by some software,
including some software that will break up a URL that has merely been
enclosed in <...>.

Signature
John W. Kennedy
"The blind rulers of Logres
Nourished the land on a fallacy of rational virtue."
-- Charles Williams. "Taliessin through Logres: Prelude"