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

Blank JFrame caused by creation in an Inner Class

 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
works OK for me - shows the title bar only (no size), but when expanded
the button is displayed OK

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic