This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use the flowlayout manager  RSS feed

 
Eric Daly
Ranch Hand
Posts: 143
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still with help of FlowLayout you can horizontally align contents in it like:

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