aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Align JLabel, JTextField inside TitledBorder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Align JLabel, JTextField inside TitledBorder" Watch "Align JLabel, JTextField inside TitledBorder" New topic

Align JLabel, JTextField inside TitledBorder

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 239
How to align JLabel & JTextField which are outside a TitledBorder with the JLabel & JTextField which are inside a TitledBorder?
My simplified Swing test program is as follows.
I use GridBagLayout for more powerful control.
i.e. how to align lastNameLabel with cityLabel & streetNumberLabel,
lastNameText with cityText & streetNumberText?
I agree. Here's the link:
subject: Align JLabel, JTextField inside TitledBorder
Similar Threads
JScrollPane Problem
JTextArea Problems
ActionListener problems
align JLabels and JTextFields vertically in different areas
setEditable(true) function of jcombobox not working