QUOTE(alpha02 @ 12 Feb, 2007 - 12:57 AM)

Hi all! I am using a JTable to show some information, like this:
(the red smiley was added in Paint

)
All right, the cells' backgrounds are white, but the remaining part is solid gray. I want all the background to be white, like in a listview. Anyone got a tip for that? I used the JTable.setBackground() method but only the cells are affected.
Thanks in advance.
I think that that area doesn't belong to the JTable, but to whatever component it is placed it in.
According to this:
http://www.chka.de/swing/table/faq.htmlQUOTE
How can I set the background color below (and to the right) of table cells if there are few rows (or colums)?
These areas don't belong to JTable by default. Instead its JViewport parent shows through there. You may either set a background color on the JViewport:
table.getParent().setBackground(...);
// table.getParent().setOpaque(true); if possibly turned off somewhere else
or use something like described in the Drag-and-Drop section to make the JTable higher/wider.