• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDialog not showing components  RSS feed

 
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: 42972
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!