📄 remarkselect.java~1~
字号:
package java_教务管理系统;
import java.awt.*;
import javax.swing.*;
import java.awt.Rectangle;
import javax.swing.table.JTableHeader;
import javax.swing.table.DefaultTableModel;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2008</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class remarkselect extends JPanel {
public remarkselect() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
this.setLayout(null);
jLabel1.setText("成绩:");
jLabel1.setBounds(new Rectangle(245, 200, 36, 15));
jLabel2.setText("学号:");
jLabel2.setBounds(new Rectangle(25, 142, 36, 15));
txtresultstuno.setBounds(new Rectangle(64, 140, 54, 20));
jLabel3.setText("月");
jLabel3.setBounds(new Rectangle(278, 172, 12, 15));
jLabel4.setText("考试次数:");
jLabel4.setBounds(new Rectangle(15, 200, 60, 15));
txtlessonteacher.setBounds(new Rectangle(335, 140, 95, 20));
jLabel5.setText("任课老师:");
jLabel5.setBounds(new Rectangle(275, 142, 60, 15));
txtresult.setBounds(new Rectangle(296, 198, 95, 20));
txaresultremarks.setBounds(new Rectangle(89, 227, 302, 63));
jLabel6.setText("年");
jLabel6.setBounds(new Rectangle(194, 172, 12, 15));
cboexaminationdatedate.setBounds(new Rectangle(295, 168, 48, 23));
txtexaminationnumber.setBounds(new Rectangle(89, 199, 115, 20));
cboexaminationdateyear.setBounds(new Rectangle(118, 168, 69, 23));
jLabel7.setText("日");
jLabel7.setBounds(new Rectangle(349, 173, 12, 15));
cboexaminationdatemonth.setBounds(new Rectangle(212, 168, 59, 23));
tbremark.setBounds(new Rectangle(5, 23, 447, 114));
jLabel8.setText("备注:");
jLabel8.setBounds(new Rectangle(37, 233, 36, 15));
txtresultclassno.setBounds(new Rectangle(195, 140, 73, 20));
jLabel9.setText("课程名称:");
jLabel9.setBounds(new Rectangle(132, 142, 60, 15));
jLabel10.setText("考试时间:");
jLabel10.setBounds(new Rectangle(53, 172, 60, 15));
jTableHeader1.setBounds(new Rectangle(0, 0, 455, 23));
this.add(jLabel1);
this.add(jLabel2);
this.add(txtresultstuno);
this.add(jLabel3);
this.add(jLabel4);
this.add(txtlessonteacher);
this.add(jLabel5);
this.add(txtresult);
this.add(txaresultremarks);
this.add(jLabel6);
this.add(cboexaminationdatedate);
this.add(txtexaminationnumber);
this.add(cboexaminationdateyear);
this.add(jLabel7);
this.add(cboexaminationdatemonth);
this.add(tbremark);
this.add(jLabel8);
this.add(txtresultclassno);
this.add(jLabel9);
this.add(jLabel10);
this.add(jTableHeader1);
}
String year[] = {"", "2006", "2007", "2008", "2009"};
String month[] = {"", "01", "02", "03", "04", "05", "06", "07",
"08",
"09",
"10", "11", "12"};
String date[] = {"", "01", "02", "03", "04", "05", "06", "07",
"08",
"09",
"10", "11", "12", "13", "14", "15", "16", "17",
"18", "19", "20", "21", "22", "23", "24", "25",
"26", "27", "28", "29", "30", "31"};
String head[] = {"学号", "考试名称", "任课老师", "考试时间", "考试次数", "成绩", "备注"};
DefaultTableModel mod = new DefaultTableModel(head, 0);
JLabel jLabel1 = new JLabel();
JLabel jLabel2 = new JLabel();
JTextField txtresultstuno = new JTextField();
JLabel jLabel3 = new JLabel();
JLabel jLabel4 = new JLabel();
JTextField txtlessonteacher = new JTextField();
JLabel jLabel5 = new JLabel();
JTextField txtresult = new JTextField();
JTextArea txaresultremarks = new JTextArea();
JLabel jLabel6 = new JLabel();
JComboBox cboexaminationdatedate = new JComboBox(date);
JTextField txtexaminationnumber = new JTextField();
JComboBox cboexaminationdateyear = new JComboBox(year);
JLabel jLabel7 = new JLabel();
JComboBox cboexaminationdatemonth = new JComboBox(month);
JTable tbremark = new JTable(mod);
JLabel jLabel8 = new JLabel();
JTextField txtresultclassno = new JTextField();
JLabel jLabel9 = new JLabel();
JLabel jLabel10 = new JLabel();
JTableHeader jTableHeader1 = tbremark.getTableHeader();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -