📄 classselect.java~5~
字号:
package java_教务管理系统;
import java.awt.*;
import javax.swing.*;
import java.awt.Rectangle;
import javax.swing.table.JTableHeader;
import javax.swing.table.DefaultTableModel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.PreparedStatement;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Connection;
import java.awt.event.MouseEvent;
import java.awt.event.MouseAdapter;
import java.awt.Font;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2008</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class classselect extends JPanel {
public classselect() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
this.setLayout(null);
jLabel1.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
jLabel1.setText("月");
jLabel1.setBounds(new Rectangle(520, 329, 22, 30));
jLabel2.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
jLabel2.setText("日");
jLabel2.setBounds(new Rectangle(646, 332, 29, 30));
jLabel3.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
jLabel3.setText("年");
jLabel3.setBounds(new Rectangle(400, 329, 25, 38));
cboclassSemester.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
cboclassSemester.setBounds(new Rectangle(599, 258, 92, 30));
jLabel4.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
jLabel4.setText("班级类型:");
jLabel4.setBounds(new Rectangle(62, 266, 106, 29));
jLabel5.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
jLabel5.setText("开学时间:");
jLabel5.setBounds(new Rectangle(172, 297, 128, 30));
cboclasscategory.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
cboclasscategory.setBounds(new Rectangle(172, 258, 126, 31));
tbclass.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
tbclass.setBounds(new Rectangle(5, 45, 845, 166));
tbclass.addMouseListener(new classselect_tbclass_mouseAdapter(this));
jLabel6.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
jLabel6.setText("班主任姓名:");
jLabel6.setBounds(new Rectangle(452, 215, 165, 38));
txaclassRemarks.setFont(new java.awt.Font("Dialog", Font.PLAIN, 20));
txaclassRemarks.setBounds(new Rectangle(287, 372, 538, 71));
cboendtimeyear.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
cboendtimeyear.setBounds(new Rectangle(288, 334, 95, 31));
cbobeginstimedate.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
cbobeginstimedate.setBounds(new Rectangle(560, 296, 76, 31));
cbobeginstimeyear.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
cbobeginstimeyear.setBounds(new Rectangle(288, 296, 95, 31));
cbobeginstimemonth.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
cbobeginstimemonth.setBounds(new Rectangle(436, 296, 68, 31));
jLabel7.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
jLabel7.setText("毕业时间:");
jLabel7.setBounds(new Rectangle(172, 332, 120, 34));
jLabel8.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
jLabel8.setText("学期:");
jLabel8.setBounds(new Rectangle(514, 256, 63, 41));
cboendtimemonth.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
cboendtimemonth.setBounds(new Rectangle(437, 333, 67, 32));
jLabel9.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
jLabel9.setText("备注:");
jLabel9.setBounds(new Rectangle(212, 370, 70, 33));
cboendtimedate.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
cboendtimedate.setBounds(new Rectangle(560, 333, 76, 32));
txtclassmastername.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
txtclassmastername.setBounds(new Rectangle(599, 220, 226, 31));
jLabel10.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
jLabel10.setText("年");
jLabel10.setBounds(new Rectangle(397, 293, 25, 35));
jLabel11.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
jLabel11.setText("班级编号:");
jLabel11.setBounds(new Rectangle(62, 220, 108, 33));
txtclassno.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
txtclassno.setBounds(new Rectangle(172, 220, 162, 31));
jTableHeader1.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jTableHeader1.setBounds(new Rectangle(5, 14, 845, 29));
btnselect.setBounds(new Rectangle(245, 477, 158, 49));
btnselect.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
btnselect.setText("搜索班级");
btnselect.addActionListener(new classselect_btnselect_actionAdapter(this));
brnexit.setBounds(new Rectangle(471, 477, 158, 49));
brnexit.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
brnexit.setText("退出搜索");
jLabel13.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
jLabel13.setText("月");
jLabel13.setBounds(new Rectangle(520, 292, 29, 30));
jLabel14.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
jLabel14.setText("日");
jLabel14.setBounds(new Rectangle(646, 296, 29, 30));
this.add(tbclass);
this.add(jTableHeader1);
this.add(jLabel11);
this.add(txtclassno);
this.add(txtclassmastername);
this.add(jLabel6);
this.add(jLabel4);
this.add(cboclasscategory);
this.add(jLabel8);
this.add(cboclassSemester);
this.add(jLabel5);
this.add(cbobeginstimeyear);
this.add(jLabel10);
this.add(cbobeginstimemonth);
this.add(cbobeginstimedate);
this.add(jLabel13);
this.add(cboendtimeyear);
this.add(jLabel7);
this.add(jLabel3);
this.add(cboendtimemonth);
this.add(jLabel1);
this.add(cboendtimedate);
this.add(jLabel14);
this.add(jLabel2);
this.add(jLabel9);
this.add(txaclassRemarks);
this.add(brnexit);
this.add(btnselect);
}
//班级年级
String Semester[] = {"", "S1", "S2", "Y2"};
//班级类别
String category[] = {"", "脱产班", "周末班"};
//开学时间(年)
String beginstimeyear[] = {"", "2006", "2007", "2008", "2009"};
//开学时间(月)
String beginstimemonth[] = {"", "01", "02", "03", "04", "05", "06", "07",
"08",
"09",
"10", "11", "12"};
//开学时间(日)
String beginstimedate[] = {"", "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 endtimeyear[] = {"", "2006", "2007", "2008", "2009"};
//毕业时间(月)
String endtimemonth[] = {"", "01", "02", "03", "04", "05", "06", "07", "08",
"09",
"10", "11", "12"};
//毕业时间(日)
String endtimedate[] = {"", "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"};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -