• Post Reply Bookmark Topic Watch Topic
  • New Topic

Correct size of a Container

 
Nathan Paris
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JFrame which contains a JPanel which uses the GridBagLayout and contains a JLabel and JTextField. Currently if I dont manually use setsize() for the JFrame and JPanel it comes up with a size of 1 X 1. Is there a way for the LayoutManager to figure out the correct size instead of me choosing one?
Thanks,
Nathan
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!