Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable  RSS feed

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to swing you'll probably have better luck there.
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!