J
John Curley
Hi, All:
I am writing a Swing app but am new to a lot of the nuances to Swing.
If I have a panel that is using a GridBagLayout, how do I align components
so that they start at the vertical top of the page?
I tried using setAlignmentY(0.0) but that didn't work.
I have that question but I also have a more global question where can I find
resources that help me in component alignment?
Sometimes I need to right align, left align, center, etc.
I have been looking through the Sun site, Sun Swing tutorial and the
internet but not with much success.
Thanks for your help.
Sincerely,
John Curley
I am writing a Swing app but am new to a lot of the nuances to Swing.
If I have a panel that is using a GridBagLayout, how do I align components
so that they start at the vertical top of the page?
I tried using setAlignmentY(0.0) but that didn't work.
I have that question but I also have a more global question where can I find
resources that help me in component alignment?
Sometimes I need to right align, left align, center, etc.
I have been looking through the Sun site, Sun Swing tutorial and the
internet but not with much success.
Thanks for your help.
Sincerely,
John Curley