I want to stack JComponent
s vertically, similar to a JList
, but since the amount of items is very low and I want a highly custom interface - I wanted to try a vertically stacked set of components.
views:
54answers:
3
+1
A:
You can try using GridBagLayout manager and tweak the GridBagConstraints
properties (gridy and gridx attributes) to achieve the needed result.
sateesh
2010-02-17 04:18:52
+1
A:
BoxLayout(panel, BoxLayout.Y_AXIS), GridLayout(0, 1)
, and if really needed GridBagLayout
Taisin
2010-02-17 10:46:51