• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem With SpringLayout Component Placement

 
Jason Ferguson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a somewhat complex layout that I decided to use SpringLayout to create. There will be a total of 4 JPanels, 2 on the "left", one on the right, and one on the bottom. The two left side JPanels are for data entry, so will consist of groups of JLabels and JTextFields.

I'm attempting to align the second JLabel/JTextField five pixels below the first (I haven't done the left alignment yet). Unfortunately, its still flowing completely from left to right.

Any help to create the "break" between to data fields would help. The constructor of the class (where I create the components) is below.

Jason

 
Jason Ferguson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind. I was being stupid and trying to make things harder than they needed to be.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!