posted 21 years ago
I used a JFrame includeing a Container, thus ,I set Container with GridBagLayout,but it seems that I even can't put the JToolBar at the top of the Container. it always at the center of the Container. I already use the GridBagConstraints, but it didn't affect too much. I got confused about the GridBagConstraints.
how should i set the gridx,gridy,gridweitht,gridheight,weightx,weithty,fill,anchor to make sure the toolbar is at the top of the Container, my ComboBox Panel is under that, my JTable Panel is under the ComboBox Panel!
thanks!
Sun Certified Java Programmer, Sun Certified Java Developer. <br />Strving to be a real architect.