This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I've got a JTable inside a JScrollPane in the main window of my application. Say I add 2 rows to my table the background color is white for those 2 rows but for the rest of my table the background color is gray. How can I set the background color so that the background is white? I've tried setBackground(Color.white) but that doesn't make the gray part white. Any suggestions? Thanks, Frank
[This message has been edited by Frank Hale (edited May 31, 2000).]
Joined: Mar 25, 2000
I figured it out. All I needed to do was get the JViewport of the JScrollPane my JTable was in and set its background color. Frank