Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable viewing problem

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have built a JTable on a JScrollPane inside a
JDialog. My problem is that when the data is build the JDialog grey until I run the mouse over it. Then the data that was loaded will appear.
Any ideas?
 
Matt Robinson
author
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try calling revalidate() and then repaint() on your JScrollPane right after you display it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic