Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDialog not showing components

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JDialog that contains 2 JPanels. However when I create the JDialog
and add the panels to the container it looks empty. If I pack the JDialog at the end I see the components but the size is very small. Very frustrating!

Thanks.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there anything in the panels? pack will reduce panels to an appropriate size, which would be about zero if no components are added to it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!