Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Align JLabel, JTextField inside TitledBorder

 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic