2 questions about layout?
Hi, all
I have 2 questions about component layout and still don't find any answers yet.
1. I have several components in a jpanel which use gridbag layout. Only small potion of jpanel space used, so all components placed in the center of the screen. Can I move all components to the upper left screen? I tried GridBagConstraints.NORTHWEST on each components but won't work.
2. I tried to layout these components. 1 jlabel and textfield in first row, 2 checkbox in the 2nd, 3th rows. Is gridbag layout the only option? I prefer to use gridlayout but can't put 2 components in the 1st row. Is there any better solution?
Thanks,
Vincent Chen

