📄 addscoremenujpanel.java
字号:
/*
* AddStudentScoreJPanel.java
*
* Created on 2007年12月14日, 下午4:26
*/
package 考试成绩分析程序;
import javax.swing.*;
/**
*
* @author drawen
*/
public class AddScoreMenuJPanel extends javax.swing.JPanel {
/** Creates new form AddStudentScoreJPanel */
public AddScoreMenuJPanel() {
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" 生成的代码 ">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
grade = new javax.swing.JTextField();
major = new javax.swing.JTextField();
classNumber = new javax.swing.JTextField();
attendNumber = new javax.swing.JTextField();
courseId = new javax.swing.JTextField();
confirm = new javax.swing.JButton();
cancel = new javax.swing.JButton();
text = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
studentId = new javax.swing.JTextField();
score = new javax.swing.JTextField();
input = new javax.swing.JButton();
jLabel7 = new javax.swing.JLabel();
year = new javax.swing.JTextField();
jLabel10 = new javax.swing.JLabel();
month = new javax.swing.JTextField();
jLabel11 = new javax.swing.JLabel();
date = new javax.swing.JTextField();
jLabel12 = new javax.swing.JLabel();
hour = new javax.swing.JTextField();
jLabel13 = new javax.swing.JLabel();
minute = new javax.swing.JTextField();
jLabel14 = new javax.swing.JLabel();
jLabel1.setText("\u589e\u52a0\u6210\u7ee9\u5355\u4fe1\u606f");
jLabel2.setText("\u5e74\u7ea7\uff1a");
jLabel3.setText("\u4e13\u4e1a\uff1a");
jLabel4.setText("\u73ed\u53f7\uff1a");
jLabel5.setText("\u8003\u8bd5\u4eba\u6570\uff1a");
jLabel6.setText("\u8bfe\u7a0b\u7f16\u53f7\uff1a");
grade.setText("2005");
major.setText("\u8ba1\u7b97\u673a\u79d1\u5b66\u4e0e\u6280\u672f");
classNumber.setText("3");
attendNumber.setText("10");
courseId.setText("1001");
confirm.setText("\u786e\u5b9a");
confirm.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
confirmButtonActionListener(evt);
}
});
cancel.setText("\u53d6\u6d88");
cancel.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cancelButtonActionListener(evt);
}
});
jLabel8.setText("\u5b66\u53f7\uff1a");
jLabel9.setText("\u5206\u6570\uff1a");
studentId.setEditable(false);
score.setEditable(false);
input.setText("\u8f93\u5165");
input.setEnabled(false);
input.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
inputButtonActionListener(evt);
}
});
jLabel7.setText("\u8003\u8bd5\u65f6\u95f4\uff1a");
year.setText("2005");
jLabel10.setText("\u5e74");
month.setText("12");
jLabel11.setText("\u6708");
date.setText("31");
jLabel12.setText("\u65e5");
hour.setText("20");
jLabel13.setText("\u65f6");
minute.setText("50");
jLabel14.setText("\u5206");
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(jLabel6)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(courseId, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)
.add(181, 181, 181))
.add(layout.createSequentialGroup()
.add(25, 25, 25)
.add(confirm)
.add(52, 52, 52)
.add(cancel)
.add(145, 145, 145))))
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(88, 88, 88)
.add(jLabel1))
.add(layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jLabel2)
.add(jLabel3)
.add(jLabel4)
.add(jLabel5))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(attendNumber, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))
.add(layout.createSequentialGroup()
.add(classNumber, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))
.add(layout.createSequentialGroup()
.add(major, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))
.add(grade, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)))
.add(layout.createSequentialGroup()
.addContainerGap()
.add(jLabel7)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(year, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 43, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jLabel10)
.add(5, 5, 5)
.add(month, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 34, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jLabel11)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(date, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)))
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(47, 47, 47)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(jLabel8)
.add(jLabel9))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(score, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 84, Short.MAX_VALUE)
.add(studentId, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 84, Short.MAX_VALUE)
.add(input))
.addContainerGap())
.add(layout.createSequentialGroup()
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(text, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 167, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addContainerGap()))
.add(layout.createSequentialGroup()
.add(13, 13, 13)
.add(jLabel12)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(hour, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 34, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jLabel13)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(minute, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 37, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(3, 3, 3)
.add(jLabel14)
.addContainerGap())))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -