Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Understanding box layouts?

 
John Corkrend
Ranch Hand
Posts: 51
Chrome Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've recently tried to use the box layout and I couldn't get it to work quite properly.

When attempting to implement the box layout, I couldn't understand this bit of code. What exactly is the container, my window, a JPanel. And then what is int. Those were the first two things I ran in to.



Here is the basic code of fake program, but the way I have the code organized is the same way I would in a real program.


 
Rob Camick
Ranch Hand
Posts: 2475
8
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to Use Box Layout
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Corkrend wrote:I've recently tried to use the box layout and I couldn't get it to work quite properly.

Its always a good idea to keep the API docs handy. The Java API has excellent comments. Many times it also links to the "How to use xxx" articles like the one Rob posted.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic