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

📄 specialityproject_add_mod.java~1~

📁 这是一个图书和学生信息的管理系统,它可以在数据库里面增加,修改,删除数据来管理图书和学生信息
💻 JAVA~1~
📖 第 1 页 / 共 5 页
字号:
    mzks_5.setBackground(SystemColor.activeCaptionBorder);    mzks_5.setEnabled(false);    mzks_5.setPreferredSize(new Dimension(45, 22));    mzks_5.setEditable(false);    mzks_4.setBackground(SystemColor.activeCaptionBorder);    mzks_4.setEnabled(false);    mzks_4.setPreferredSize(new Dimension(45, 22));    mzks_4.setEditable(false);    mzks_3.setBackground(SystemColor.activeCaptionBorder);    mzks_3.setEnabled(false);    mzks_3.setPreferredSize(new Dimension(45, 22));    mzks_3.setEditable(false);    xkzs_8.setBackground(SystemColor.activeCaptionBorder);    xkzs_8.setEnabled(false);    xkzs_8.setPreferredSize(new Dimension(45, 22));    xkzs_8.setEditable(false);    jPanel3.setLayout(borderLayout4);    jLabel45.setFont(new java.awt.Font("Serif", 0, 12));    jLabel45.setText("  学时");    jLabel44.setFont(new java.awt.Font("Serif", 0, 12));    jLabel44.setText("  学时");    jLabel43.setFont(new java.awt.Font("Serif", 0, 12));    jLabel43.setText("  学时");    jLabel42.setFont(new java.awt.Font("Serif", 0, 12));    jLabel42.setText("  学时");    jLabel41.setFont(new java.awt.Font("Serif", 0, 12));    jLabel41.setText("  学时");    jLabel40.setFont(new java.awt.Font("Serif", 0, 12));    jLabel40.setText("  学时");    jLabel37.setFont(new java.awt.Font("Serif", 0, 12));    jLabel37.setText("课外实践:");    jLabel36.setFont(new java.awt.Font("Serif", 0, 12));    jLabel36.setText("课内上机:");    jLabel35.setFont(new java.awt.Font("Serif", 0, 12));    jLabel35.setText("课堂讨论:");    jLabel34.setFont(new java.awt.Font("Serif", 0, 12));    jLabel34.setText("课内实验:");    jLabel33.setFont(new java.awt.Font("Serif", 0, 12));    jLabel33.setText("自学:");    jLabel32.setFont(new java.awt.Font("Serif", 0, 12));    jLabel32.setText("课堂讲授:");    jPanel6.setBorder(titledBorder1);    jPanel6.setLayout(gridBagLayout4);    jLabel4.setFont(new java.awt.Font("Serif", 0, 12));    jLabel4.setText("总学时:");    jLabel6.setFont(new java.awt.Font("Serif", 0, 12));    jLabel6.setText("  学时");    jLabel7.setFont(new java.awt.Font("Serif", 0, 12));    jLabel7.setText("  专业名称:");    zxs.setToolTipText("");    jLabel11.setFont(new java.awt.Font("Serif", 0, 12));    jLabel11.setText("  考试类型:");    jLabel10.setFont(new java.awt.Font("Serif", 0, 12));    jLabel10.setText("  学习层次:");    jLabel39.setFont(new java.awt.Font("Serif", 0, 12));    jLabel39.setText("  学习形式:");    jPanel11.setLayout(gridBagLayout1);    jLabel21.setFont(new java.awt.Font("Serif", 0, 12));    jLabel21.setText("课程名称:");    jLabel8.setText("    ");    name.setFont(new java.awt.Font("Serif", 0, 12));    cc.setFont(new java.awt.Font("Serif", 0, 12));    xxxs.setFont(new java.awt.Font("Serif", 0, 12));    jLabel19.setFont(new java.awt.Font("Serif", 0, 12));    jLabel19.setText("  课程代码:");    kcdm.setFont(new java.awt.Font("Serif", 0, 12));    xz.setFont(new java.awt.Font("Serif", 0, 12));    this.getContentPane().add(jPanel2, BorderLayout.SOUTH);    jPanel2.add(jPanel8, null);    jPanel8.add(saveButton, null);    jPanel8.add(cancelButton, null);    this.getContentPane().add(jPanel5,  BorderLayout.NORTH);    jPanel5.add(jLabel12, null);    this.getContentPane().add(jPanel1, BorderLayout.CENTER);    jPanel1.add(jPanel9, BorderLayout.NORTH);    jPanel9.add(jLabel20,                 new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel9.add(jLabel18,            new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel9.add(code,               new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 100, 0));    jPanel9.add(jLabel7,        new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel9.add(name,        new GridBagConstraints(4, 0, 3, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 200, 0));    jPanel9.add(xz,  new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel9.add(jLabel10, new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel9.add(cc,  new GridBagConstraints(4, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 100, 0));    jPanel9.add(jLabel39,  new GridBagConstraints(5, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel9.add(xxxs,   new GridBagConstraints(6, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 100, 0));    jPanel1.add(jPanel4,  BorderLayout.CENTER);    jPanel4.add(jPanel7,  BorderLayout.EAST);    jPanel7.add(jCheckBox1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel13, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel14, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(xkzs_1,    new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 30, 0));    jPanel7.add(jLabel15, new GridBagConstraints(4, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(mzks_1,    new GridBagConstraints(5, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 30, 0));    jPanel7.add(jCheckBox2, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jCheckBox4, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jCheckBox3, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jCheckBox5, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jCheckBox6, new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jCheckBox7, new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jCheckBox8, new GridBagConstraints(0, 7, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(xkzs_2,  new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(mzks_2,  new GridBagConstraints(5, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel16, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel17, new GridBagConstraints(4, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel1, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel2, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel3, new GridBagConstraints(2, 4, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel5, new GridBagConstraints(2, 5, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel23, new GridBagConstraints(2, 6, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel24, new GridBagConstraints(2, 7, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel25, new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel26, new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel27, new GridBagConstraints(4, 4, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel28, new GridBagConstraints(4, 5, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel29, new GridBagConstraints(4, 6, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(jLabel30, new GridBagConstraints(4, 7, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(xkzs_3,  new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(xkzs_4,  new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(xkzs_5,  new GridBagConstraints(3, 4, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(xkzs_6,  new GridBagConstraints(3, 5, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(xkzs_7,  new GridBagConstraints(3, 6, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(xkzs_8,  new GridBagConstraints(3, 7, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(mzks_3,  new GridBagConstraints(5, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(mzks_4,  new GridBagConstraints(5, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(mzks_5,  new GridBagConstraints(5, 4, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(mzks_6,  new GridBagConstraints(5, 5, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(mzks_7,  new GridBagConstraints(5, 6, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel7.add(mzks_8,  new GridBagConstraints(5, 7, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel4.add(jPanel3,  BorderLayout.CENTER);    jPanel3.add(jPanel6, BorderLayout.CENTER);    jPanel6.add(jLabel32,   new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(ktjs,      new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(jLabel33,   new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(zx,      new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 60, 0));    jPanel6.add(jLabel34,   new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(knsy,    new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(jLabel35,   new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(kttl,    new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(jLabel36,   new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(knsj,    new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(jLabel37,   new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(jLabel40,   new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(jLabel41,   new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(jLabel42,   new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(jLabel43,   new GridBagConstraints(2, 4, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(jLabel44,   new GridBagConstraints(2, 5, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(jLabel45,   new GridBagConstraints(2, 6, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(kwsj,   new GridBagConstraints(1, 6, 1, 1, 0.0, 0.0            ,GridBagConstraints.EAST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(zxs, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.SOUTHEAST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 60, 0));    jPanel6.add(jLabel6, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel6.add(jLabel4, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel4.add(jPanel11, BorderLayout.NORTH);    jPanel11.add(jLabel21,             new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel11.add(jLabel22,      new GridBagConstraints(4, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel11.add(kclx,     new GridBagConstraints(5, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel11.add(jLabel11,     new GridBagConstraints(6, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel11.add(kslx,     new GridBagConstraints(7, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel11.add(jLabel8,    new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    jPanel11.add(jLabel19,    new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));    jPanel11.add(kcdm,     new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), -1000, 0));    init();    if(oper.equals("add")){      jPanel11.add(kcname,          new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0          ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));      kcname.setFont(new java.awt.Font("Serif", 0, 12));      kcname.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        kcname_actionPerformed(e);      }    });    }    else{      jPanel11.add(jLabel9,          new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0          ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));      jLabel9.setFont(new java.awt.Font("Serif", 0, 12));    }    setWindowCenter();////将本对话框居中  }  void cancelButton_actionPerformed(ActionEvent e)  {     this.dispose();  }  void saveButton_actionPerformed(ActionEvent e){    boolean flag = false;    if (zxs.getText().trim().equals(""))      JOptionPane.showMessageDialog(this,"请输入总学时数!","输入错误",JOptionPane.ERROR_MESSAGE);    else if(!isSelect())      JOptionPane.showMessageDialog(this,"请选择并输入学期课时安排!","输入错误",JOptionPane.ERROR_MESSAGE);    else if(!isInput())      JOptionPane.showMessageDialog(this,"请输入学期课时安排!","输入错误",JOptionPane.ERROR_MESSAGE);    else{      try{        String msg[]={"",""};        Object[] obj  = new Object[12];        obj[0] = new Integer(zy_id);        if(oper.equals("add"))          obj[1] = new Integer(kcname.getSelectvalue());        else          obj[1] = new Integer(kc_id);        obj[2] = new Integer(zxs.getText().trim());        obj[3] = new Integer(kclx.getSelectvalue());        obj[4] = new Integer(kslx.getSelectvalue());        if (ktjs.getText().trim().equals(""))          obj[5] = null;        else          obj[5] = new Integer(ktjs.getText().trim());        if (zx.getText().trim().equals(""))          obj[6] = null;        else          obj[6] = new Integer(zx.getText().trim());        if (knsy.getText().trim().equals(""))          obj[7] = null;        else          obj[7] = new Integer(knsy.getText().trim());        if (kttl.getText().trim().equals(""))          obj[8] = null;

⌨️ 快捷键说明

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