Re: BoxLayout making component too big



On 4/26/2005 at 5:33:11 AM, Nomak wrote:

> if i put some component in a FlowLayout, they have a "clever" size. But
> i need to have them verticaly, so i use a BoxLayout(Y_AXIS). But the
> layout make the components big to fill all the panel space (in fact the
> 2 radio button are ok, but the combo box has a big height).

See "How to Use BoxLayout" in the Java Tutorial. Check out the part on
rigid areas, glue, and custom fillers.

http://java.sun.com/docs/books/tutorial/uiswing/layout/box.html

--
Regards,

John McGrath
.