• Post Reply Bookmark Topic Watch Topic
  • New Topic

Observer and Observable

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'd like to see the topPanel to resize once the JFrame is resized. How can I achieve this?
Why
 
Tony Docherty
Saloon Keeper
Posts: 3138
72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jacky Luk wrote:
I'd like to see the topPanel to resize once the JFrame is resized. How can I achieve this?

Use a layout manager. Layout managers can seem a little confusing at first but once you get the hang of them they make coding GUI's so much easier.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!