Component Alignment issues.

Hello,

I am having a very difficult time aligning my components along the y Axis. I have a JFrame with a BorderLayout. A JTabbedPane in the center of the Frame with a BoxLayout.PAGE_AXIS. Then I have a JScrollPane in a tab. Then a JPanel is added to the JScrollPane. Finally, I add some radio buttons and a JTextField to another JPanel which is added to that last Panel. I keep adding different panels to the other JPanel and each one has a JTextField with a different width. I want to keep all the radio buttons aligned to make it look nice. How would I do that?

I tried adding BoxLayouts to every Panel and setAlignmentY (and X) to Component.RIGHT_ALIGNMENT and nothing seems to work. The tutorials dont go into much detail about alignment either. Thanks for any help.

-Marcus

[803 byte] By [Mag748a] at [2007-11-26 19:40:42]
# 1
I tried adding a simple JLabel to see if the alignment on that would work and it did. Is there a problem with aligning whole Panels with each other?Thanks,Marcus
Mag748a at 2007-7-9 22:21:03 > top of Java-index,Java Essentials,New To Java...