• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable - grid lines  RSS feed

 
zoe goddard
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying make a JTable appear completely black, except for the text.
I've tried the following, but it doesn't appear to work completely.
table.setShowGrid(false);
I'm adding a JTextField and I set the border to null.
I'm still getting white lines between the cells, any ideas of what this could be?
 
Julia Reynolds
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whenever I have tricky Swing questions I do a search on jguru.com. This is what they suggest for your problem:
http://www.jguru.com/forums/view.jsp?EID=844760
Julia
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!