table, scrollpane color and background

Hi,

I have a file tree from which the content is displayed in a table. The table is added to a scrollpane.

Where data is in the table, the background color in the table is white.The problem is where no data is - where no more rows needed to drawn, the color of the scrollpane is grey. I would like to set the color of that area white.

tableScrollPane.setBackground(new Color(1f,1f,1f));

This code snippet does not solve the problem, the color of the area under the table is grey!

I could send u a snapshot of it in email if needed.

Thx in advance:

james

[636 byte] By [javahelpsa] at [2007-11-26 19:00:08]
# 1
tableScrollPane.getViewport().setBackground(Color.WHITE);
itchyscratchya at 2007-7-9 20:42:05 > top of Java-index,Desktop,Core GUI APIs...
# 2
Read the explanation at the beginning of the API: http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JScrollPane.htmlThe answer is written there.
Rodney_McKaya at 2007-7-9 20:42:05 > top of Java-index,Desktop,Core GUI APIs...
# 3
Thx a lot, it works fine.james
javahelpsa at 2007-7-9 20:42:05 > top of Java-index,Desktop,Core GUI APIs...