• Post Reply Bookmark Topic Watch Topic
  • New Topic

Rescalling JComponents

 
Piotr Gajowy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do I have now:



What it does - when I am rescalling the JFrame with a mouse it works only one way - to be precise, when I make JFrame bigger, JLayeredPane and all the JPanels grow to the size of JFrame (and it is great!), but when I decrease the size of JFrame (shrink), both JLayeredPane and JPanels remain greater, and frame starts to show only a part of the JPanels.

How to make JLayeredPanes and JPanels to fit the JFrame window always (I mean not only when JFrame grows)?

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!