step1.java

来自「Timetable Generator source code」· Java 代码 · 共 324 行 · 第 1/2 页

JAVA
324
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. *//* * step1.java * * Created on Feb 23, 2009, 11:18:10 AM */package timetable;import java.sql.*;/** * * @author admin */public class step1 extends javax.swing.JFrame {    /** Creates new form step1 */    public String dept1;    public int yr1;    public int sem1;    public String sec;    public int now;    public int st,et;        public step1() {        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.     */    @SuppressWarnings("unchecked")    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents    private void initComponents() {        jPanel1 = new javax.swing.JPanel();        jLabel1 = new javax.swing.JLabel();        jComboBox1 = new javax.swing.JComboBox();        jLabel2 = new javax.swing.JLabel();        jComboBox2 = new javax.swing.JComboBox();        jLabel3 = new javax.swing.JLabel();        jComboBox3 = new javax.swing.JComboBox();        jLabel4 = new javax.swing.JLabel();        jComboBox4 = new javax.swing.JComboBox();        jLabel5 = new javax.swing.JLabel();        jTextField1 = new javax.swing.JTextField();        jLabel6 = new javax.swing.JLabel();        jComboBox5 = new javax.swing.JComboBox();        jButton1 = new javax.swing.JButton();        jButton2 = new javax.swing.JButton();        jButton3 = new javax.swing.JButton();        jLabel7 = new javax.swing.JLabel();        jComboBox6 = new javax.swing.JComboBox();        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);        jPanel1.setBackground(new java.awt.Color(255, 204, 255));        jLabel1.setText("Department");        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "CSE", "ECE", "IT", "EEE", "MECH", "BME", "BT", "CIVIL" }));        jComboBox1.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jComboBox1ActionPerformed(evt);            }        });        jLabel2.setText("Year");        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", " " }));        jComboBox2.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jComboBox2ActionPerformed(evt);            }        });        jLabel3.setText("Semester");        jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2" }));        jComboBox3.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jComboBox3ActionPerformed(evt);            }        });        jLabel4.setText("Section");        jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "A", "B", " " }));        jComboBox4.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jComboBox4ActionPerformed(evt);            }        });        jLabel5.setText("No. of working days");        jTextField1.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jTextField1ActionPerformed(evt);            }        });        jLabel6.setText("Timings");        jComboBox5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "8", "9", "10", "11", " ", " " }));        jComboBox5.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jComboBox5ActionPerformed(evt);            }        });        jButton1.setText("Next");        jButton1.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jButton1ActionPerformed(evt);            }        });        jButton2.setText("Cancel");        jButton2.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jButton2ActionPerformed(evt);            }        });        jButton3.setText("Previous");        jLabel7.setText("to");        jComboBox6.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2", "3", "4", "5" }));        jComboBox6.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jComboBox6ActionPerformed(evt);            }        });        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);        jPanel1.setLayout(jPanel1Layout);        jPanel1Layout.setHorizontalGroup(            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)            .addGroup(jPanel1Layout.createSequentialGroup()                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)                    .addGroup(jPanel1Layout.createSequentialGroup()                        .addGap(68, 68, 68)                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)                            .addComponent(jLabel5)                            .addComponent(jLabel4)                            .addGroup(jPanel1Layout.createSequentialGroup()                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)                                    .addComponent(jLabel1)                                    .addComponent(jLabel3)                                    .addComponent(jLabel2)                                    .addComponent(jLabel6))                                .addGap(72, 72, 72)                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)                                    .addGroup(jPanel1Layout.createSequentialGroup()                                        .addComponent(jComboBox5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)

⌨️ 快捷键说明

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