JLabellab1=newJLabel("科目");JLabellab2=newJLabel("年级");JLabellab3=newJLabel("班级");JLabellab4=newJLabel("查询");JButtonbtn=newJButton("确定");JButtonbtn2=newJButton("...
JLabel lab1=new JLabel("科目");
JLabel lab2=new JLabel("年级");
JLabel lab3=new JLabel("班级");
JLabel lab4=new JLabel("查询");
JButton btn=new JButton("确定");
JButton btn2=new JButton("重置");
JComboBox c1=new JComboBox();
c1.addItem("语文");
c1.addItem("数学");
final JComboBox c2=new JComboBox();
c2.addItem("");
c2.addItem("一年级");
c2.addItem("二年级");
c2.addItem("三年级");
final JComboBox c3=new JComboBox();
c3.addItem("");
c3.addItem("一班");
c3.addItem("二班");
c3.addItem("三班");
final JComboBox c4=new JComboBox();
c4.addItem("");
c4.addItem("平均分");
c4.addItem("总分");
c4.addItem("不及格名单");就是怎么使科目,年纪,班级从数据库的科目,年纪,班级表取值
展开