File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Resizing of a Component freezes the screen and contents of JTable are greyed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Resizing of a Component freezes the screen and contents of JTable are greyed " Watch "Resizing of a Component freezes the screen and contents of JTable are greyed " New topic
Author

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

Mohammed Ajmal
Greenhorn

Joined: Sep 20, 2004
Posts: 29
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

Joined: Oct 17, 2001
Posts: 4313

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

Joined: Aug 20, 2004
Posts: 138
Hi Ajmal,

can you post you gui code here, therefore, we may know how your code works wrong, and may fix it.


Download Java GUI Builder, <a href="http://www.mars3000.com" target="_blank" rel="nofollow">http://www.mars3000.com</a>
 
jQuery in Action, 2nd edition
 
subject: Resizing of a Component freezes the screen and contents of JTable are greyed