• Post Reply Bookmark Topic Watch Topic
  • New Topic

Observer and Observable  RSS feed

 
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
Bartender
Posts: 3264
81
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!