JPanel layout top to bottom

Is there a way to make the JPanel add components starting at the top and going tot he bottom. The default way is from left to right. I tried a GridLayout but that stretches everything out to take up equal space which I don't want to happen.
[255 byte] By [locopuyoa] at [2007-10-3 10:11:33]
# 1
Never mind. I figured out how to do it using a GridBagLayout.
locopuyoa at 2007-7-15 5:31:37 > top of Java-index,Desktop,Core GUI APIs...
# 2
A vertical BoxLayout is also designed for this.[url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers[/url].
camickra at 2007-7-15 5:31:37 > top of Java-index,Desktop,Core GUI APIs...
# 3
actually i dont like to use the any layouts, so i just set the layout to null(default style of c#.net) and control size and position by myself..whatever style i like..you can also try this.
AmitavaDeya at 2007-7-15 5:31:37 > top of Java-index,Desktop,Core GUI APIs...