创建一个按钮,正确语句是()。
A. JFrame f=new JFrame("成绩管理");
B. JLabel l1=new JLabel("姓名");
C. JTextField t1=new JTextField();
D. JButton b1=new JButton("添加");
设置对象 f 的位置,正确的是()。
A. f.setSize(500, 400);
B. f.setVisible(true);
C. f.setLocation(600, 300);
D. f.Location(600, 300);
设置对象 f 的尺寸,正确的是()。
A. f.setSize(500, 400);
B. f.setVisible(true);
C. f.setLocation(600, 300);
D. f.Location(600, 300);
()不是容器。
A. Frame
B. Panel
C. Dialog
D. Label