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

Resizing of a Component freezes the screen and contents of JTable are greyed

 
Mohammed Ajmal
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting a problem where Contents of a JTable are getting greyed, I mean not able to see when I resize the parent component that is a JPanel.

I have two Tables one table used as rowHeader and other for dataContent display(Viewport) in a JScrollpane. Here I am embedding the two tables into a JscrollPane and the JScrollPane into a JPanel. The dimensions of JScrollPane have to be varied as the Jpanel is resized. But in my case when I resize( decrease the size of JPanel) the contents in JScrollPane are getting greyed(not visible).

I am beginner in using Swing. Could you please inform any solution or work around to solve the problem.

Thanks,
Ajmal.
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im moving this to the Swing/AWT forum where questions like this are a better fit. So please post your replies there. Thanks!
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ajmal,

can you post you gui code here, therefore, we may know how your code works wrong, and may fix it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic