A
alex_us01
hello,
I wonder how to leave space between components in a vertical BoxLayout.
Something like:
==========
BoxLayout boxLayout = new BoxLayout(this, BoxLayout.Y_AXIS);
myPanel.setLayout(boxLayout);
....
myPanel.add(new JLabel("first label");
myPanel.add(new JLabel("second label");
==========
I want to leave a vertical space between labels.
thanks,
alex
I wonder how to leave space between components in a vertical BoxLayout.
Something like:
==========
BoxLayout boxLayout = new BoxLayout(this, BoxLayout.Y_AXIS);
myPanel.setLayout(boxLayout);
....
myPanel.add(new JLabel("first label");
myPanel.add(new JLabel("second label");
==========
I want to leave a vertical space between labels.
thanks,
alex