Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualBarzai

Posted 10 February 2013 - 01:21 PM

Here's a link to the layout tutorial that the Oracle folks made:

http://docs.oracle.com/javase/tutorial/uiswing/layout/using.html

 

They recommend just using netbeans.  I haven't actually used that yet, so I don't know how effective it is.  Otherwise they recommend grouplayout or gridbaglayout.

 

Personally I've had a lot of luck with BoxLayout.  BoxLayout tends to prefer to support the default sizes of components, so it doesn't do some of the weird resizing things some of the other layout setups do.  To get more intricate layouts, though, you have to make yourself a hierarchical box structure.  That's actually sort of the way I tend to set stuff up when I code javascript as well, though, so it flows pretty naturally for me.

 

Good luck

 

*Edit part*

I just had a thought.  It might work out well for what you're making to just move your UI display stuff into your canvas.  Then you wouldn't need to bother with the layout managers at all.


#1Barzai

Posted 10 February 2013 - 01:00 PM

Here's a link to the layout tutorial that the Oracle folks made:

http://docs.oracle.com/javase/tutorial/uiswing/layout/using.html

 

They recommend just using netbeans.  I haven't actually used that yet, so I don't know how effective it is.  Otherwise they recommend grouplayout or gridbaglayout.

 

Personally I've had a lot of luck with BoxLayout.  BoxLayout tends to prefer to support the default sizes of components, so it doesn't do some of the weird resizing things some of the other layout setups do.  To get more intricate layouts, though, you have to make yourself a hierarchical box structure.  That's actually sort of the way I tend to set stuff up when I code javascript as well, though, so it flows pretty naturally for me.

 

Good luck


PARTNERS