laying out components in GridBagLayout not as expected
问题 import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; public class GridBagLayoutDemo extends JFrame { private JFrame frame; private JPanel panel; private JLabel l1,l2,l3,l4,l5,l6,l7,l8; private JRadioButton r1,r2,r3,r4,r5,r6,r7,r8; private JTextField t1,t2,t3,t4; private JComboBox c1; GridBagConstraints gbc; GridBagLayout gbl; public static void main(String[] args) { new GridBagLayoutDemo(); } public GridBagLayoutDemo() { frame=new JFrame(); panel=new JPanel();