Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jTable background? problem  RSS feed

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i built this jTable, played with setbackground and setOpace on jtable, jScrollPane and Jpanel, but without results in getting what i want: when displaying a table, i want that the remaining space between rows and the space i initialy gave jtable to display shows white (imagine i gave jtable 400 x 400 and only have one single row - the remaining space displays in gray and i want it to be white)

how can i achieve it?

TiA
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
scrollPane.getViewport().setBackground(Color.WHITE);
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you: that's it
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!