⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scoreq.java~3~

📁 S1项目本需求规格说明描述了北大青鸟ACCP教学管理系统项目的要求
💻 JAVA~3~
字号:
package xiangmu;

import java.awt.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.*;
import java.awt.Rectangle;
import java.awt.Font;
import javax.swing.BorderFactory;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * <p>Title: 第四学习小组-教学管理系统</p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2008</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class ScoreQ extends JFrame {
    String cols[]={"  学  号","  课程名","  老  师","  考试日期","  考试编次","  考试成绩","  备  注"};
    DefaultTableModel bg=new DefaultTableModel(cols,0);
    public ScoreQ() {
        try {
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        getContentPane().setLayout(null);
        jLabel1.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
        jLabel1.setText("学员编号:");
        jLabel1.setBounds(new Rectangle(234, 17, 86, 19));
        jComboBox2.setBounds(new Rectangle(299, 9, 90, 33));
        jComboBox1.setBounds(new Rectangle(129, 10, 90, 33));
        jButton2.setBounds(new Rectangle(658, 9, 90, 33));
        jButton2.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
        jButton2.setText("退  出");
        jButton2.addActionListener(new ScoreQ_jButton2_actionAdapter(this));
        jButton1.setBounds(new Rectangle(561, 9, 90, 33));
        jButton1.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
        jButton1.setText("查  询");
        jScrollPane1.setBorder(BorderFactory.createEtchedBorder());
        jScrollPane1.setBounds(new Rectangle(8, 45, 789, 401));
        jLabel3.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
        jLabel3.setText("考试编次:");
        jLabel3.setBounds(new Rectangle(400, 19, 73, 15));
        jComboBox3.setBounds(new Rectangle(462, 9, 91, 33));
        this.getContentPane().add(jScrollPane1);
        this.getContentPane().add(jButton2);
        this.getContentPane().add(jButton1);
        this.getContentPane().add(jLabel2);
        this.getContentPane().add(jComboBox1);
        this.getContentPane().add(jLabel1);
        this.getContentPane().add(jComboBox2);
        this.getContentPane().add(jLabel3);
        this.getContentPane().add(jComboBox3);
        jScrollPane1.getViewport().add(jTable1);
        jLabel2.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
        jLabel2.setText("所属班级:");
        jLabel2.setBounds(new Rectangle(67, 11, 80, 30));
        jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.
                                                VERTICAL_SCROLLBAR_ALWAYS);
    }

    JLabel jLabel1 = new JLabel();
    JLabel jLabel2 = new JLabel();
    JComboBox jComboBox1 = new JComboBox();
    JComboBox jComboBox2 = new JComboBox();
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    JScrollPane jScrollPane1 = new JScrollPane();
    JTable jTable1 = new JTable(bg);
    JLabel jLabel3 = new JLabel();
    JComboBox jComboBox3 = new JComboBox();
    public void jButton2_actionPerformed(ActionEvent e) {
     this.dispose();
    }
}


class ScoreQ_jButton2_actionAdapter implements ActionListener {
    private ScoreQ adaptee;
    ScoreQ_jButton2_actionAdapter(ScoreQ adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jButton2_actionPerformed(e);
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -