aspose 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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

 
 
subject: Blank JFrame caused by creation in an Inner Class