| Author |
align JLabels and JTextFields vertically in different areas
|
albert kao
Ranch Hand
Joined: Feb 04, 2010
Posts: 224
|
|
I like to have 3 TitledBorders for 3 different areas of my frame.
Each area has its own components - JLabels, JTextField, etc.
How to align JLabels and JTextFields vertically in different areas?
e.g. for the following test program, how to configure label1, label2, label3 so that their right sides all align vertically and
tf1, tf2, tf3 so that their left sides all align vertically?
|
 |
Andrey Kozhanov
Ranch Hand
Joined: Mar 12, 2010
Posts: 79
|
|
|
I only could think of using null layout managers and aligning your components manually.
|
 |
 |
|
|
subject: align JLabels and JTextFields vertically in different areas
|
|
|