This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable" Watch "JTable" New topic
Author

JTable

Selvan tiru
Greenhorn

Joined: Jul 12, 2001
Posts: 18
Hello:
Created a JTable and place in JScrollPane:
If the JTable has only one row, The JScrollpane shows the gray color for the remaining area in the
scrollpane. How to set the color of the
scrollpane to the same color.
JTable has auto_resize_off
thanks
selvan
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Moving this to swing you'll probably have better luck there.


Dave
Jeff Smith
Ranch Hand

Joined: May 04, 2001
Posts: 50
You need to set the background color of the JViewport that you placed your table inside of to white (or whatever the background color of your table is), such as:

Jeff
[ March 28, 2002: Message edited by: Jeff Smith ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JTable
 
Similar Threads
JTable color problem
JTable
Adding a ScrollBar to JTable cells
jtable and jscrollpane question
JTable