• Post Reply Bookmark Topic Watch Topic
  • New Topic

White space in JTable  RSS feed

 
Kurt Peters
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone look at the behaviour of the included code and explain why this happens:
When you select (Toggle) a toggle button in a panel on the right side, the next time you click (or some subsequent time you click) on the left panel to select or redraw, some white open spaces occur?

I'm having this problem in my project and can't stomp it out. Sorry the formatting is not perfect, but I wanted to save characters in the forum.
Regards,
Kurt
 
Kurt Peters
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ended up fixing this by placing:


after around line 121


I had to put the packRows in there because if I didn't it was squishing each JPanel to nothing -- I don't know what was causing that.


PackRows was copied from someone else's post somewhere:

Kurt
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!