• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

SpringLayout doubt

Ranch Hand
Posts: 528
Hibernate Eclipse IDE 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?

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic