NetBeans 6 Feature Highlight: Centering Of Swing Components
By Roman Strobl on VI 07, 2007
Prior to NetBeans 6 it was really hard to align two or more Swing components on center with Matisse. There's a new feature in NetBeans 6 for this operation.
In the following form I have a JTextArea and a JButton. I'd like to put the JButton into the center position, relative to the JTextArea:
I choose both components using the left mouse button while holding the Shift key. Now I can use the Align menu and choose Align Center to column:
The JButton becomes centered with the JTextArea:
Moreover when I resize the form, the button still stays centered as it would be expected!