I'm working on making my chat applet a little more portable.
Specifically I want to set it up so the colors of the various components
can be changed via param tags. The only problem is, I can't figure out
how to change the background of a JTable I have to display the users
that are connected...
If you do:
table.setBackground(Color.whatever);
it changes the color of the elements rather than the rest of the table.
If you change the color of the panel it's sitting in it doesn't work either.
To illustrate, I've made a test applet to show you what I mean at:
http://evilgeeks.ca/EGIMP/remotetest/
The green is the panel behind the table. The blue is where I did
'table.setBackground(Color.blue);'.
What I need to know, is whether the gray part of the table can be changed.
Any help is appreciated greatly.
Thanks,
Joseph Smith