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 Blank JFrame caused by creation in an Inner Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Blank JFrame caused by creation in an Inner Class" Watch "Blank JFrame caused by creation in an Inner Class" New topic
Author

Blank JFrame caused by creation in an Inner Class

jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Hi Guys I have a very weird problem.

I Have a Swing (JFrame based) form generator.

I have an application which uses the form generator, and when
it calls it, the form generated is displayed, but is
completely blank and hangs (does not exit nor show any of its contents).
It doesnt even have the correct background color... But some how
it does have a title. Its just a big grey rectangle.

I 3 code snippets below - 2 of them work fine, but the 3rd
fails. In the third, a hang results. Please help this is very
strange. I suspect it is a bug in JFrame or in the Dispatch Thread or something?

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
works OK for me - shows the title bar only (no size), but when expanded
the button is displayed OK

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Blank JFrame caused by creation in an Inner Class
 
Similar Threads
My calculator needs help.
how to get JTextField value from another class
How to display components as well as draw?
Question about ActionListener
ActionListener