Im trying to left-orient a JLabel and JList in a GridBagLayout panel thats in a split pane.
I'm using a GridBagLayout because I'm trying to left orient everything in the panel...I tried to use a BoxLayout but everything was center-oriented, the only way I found to get the Label to become left-oriented in the pane was to increase the size of the label to size of the surrounding pane (I dont want to hard code the size of the label )
I want the the GridBagLayout panel to resize correctly when the split pane is pulled up and down....but when I move the drag the split pane up towards the list, the JList gets crushed...not shrunk like expect...crushed and center-oriented in the panel
Please tell me what I'm doing wrong!
Also, if anybody can tell me how to left-orient components in the surrounding pane without using a GridBagLayout or hard-coding the component size, that'd be great.
Here's my code:
[ June 30, 2007: Message edited by: David Miranda ] [ July 01, 2007: Message edited by: David Miranda ]