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

Cant get BoxLayout to work right !!

 
Thang Pham
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to create GUI but something is not right here. The button "Sort" and "Show Content", I want them to be on the line, but they are on different line, Not sure why??
Here is my code, the part about the button is toward to the end



 
pete stein
Bartender
Posts: 1561
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by you want the buttons "on the line"? Do you want them both on the same line at the bottom? If so, then put them in their own JPanel and then add that button panel to the main panel.
 
Thang Pham
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I got it right now.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic