• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring Layout

 
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello.

I went through the java tutorials. I am having difficulty in understanding SpringLayout's putConstraints().

Following code adds a LABEL.



I am not getting the 4th argument passed in putConstraints().

What is understood is that in the 1st putConstraints(), position the label from west side of the container leaving 10 units(i guess pixels). 5th arg states to put in contentPane.

Similarly second putConstraints() does the same work but beginning from North, leaving 25 units in y axis.

But what does fourth argument does? SpringLayout class says that's an edge of the anchor.
 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Doubts cleared.

Thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic