This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use the flowlayout manager

 
Eric Daly
Ranch Hand
Posts: 143
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to put three different things on a window, any way I can. I don't understand how to work any of the layout managers... it seems like BorderLayout isn't even working. My goal is to get the change button at the top, the circle in the middle, and then the square at the bottom. All I see is the change button. What am I doing wrong?



[EDIT]
got it working, I had to set the window size to be larger to display the content at the bottom (the square and its info) and also I switched to BoxLayout so it was arranged from top to bottom.
 
Mikko Kohtamäki
Ranch Hand
Posts: 112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still with help of FlowLayout you can horizontally align contents in it like:

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic