Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SpringLayout doubt  RSS feed

 
Marcelo Ortega
Ranch Hand
Posts: 528
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SpringLayout is a powerfull layout manager; but aren't layout managers supposed to automatically resize your components for you (depending on the type of screen and if you resixe the window or not)? SpringLayout doesn't seem to do this.

Any reason why?

Regards,
Marzo.
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some layout managers will automatically resize the components you hand them, eg, BorderLayout and GridLayout. Some will allow the components to remain at their preferred size, eg, FlowLayout and GridBagLayout. Some layout managers will show components somewhere in the spectrum of minimum size, preferred size and maximum size according to how you put things together, eg, BoxLayout and SpringLayout. See the page Using Layout Managers in the Swing tutorial.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!