亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mystudentinfopanel.java~38~

?? 使用JBuilder基于Oracle數據庫的課程作業
?? JAVA~38~
?? 第 1 頁 / 共 2 頁
字號:
package superframe.factionpanels.infopanel;

import javax.swing.JFormattedTextField;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JLabel;
import com.borland.jbcl.layout.XYConstraints;
import superframe.link.SQLRunner;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
import java.sql.SQLException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class MyStudentInfoPanel extends InfoPanel {
    JLabel jLabel_name = new JLabel();
    JLabel jLabel_nation = new JLabel();
    JLabel jLabel_source = new JLabel();
    JLabel jLabel_home_phone = new JLabel();
    JLabel jLabel_stu_no = new JLabel();
    JLabel jLabel_birthday = new JLabel();
    JLabel jLabel_score = new JLabel();
    JLabel jLabel_address = new JLabel();
    JLabel jLabel_sex = new JLabel();
    JLabel jLabel_polity = new JLabel();
    JLabel jLabel_college = new JLabel();
    JLabel jLabel13 = new JLabel();
    JLabel jLabel14 = new JLabel();
    JLabel jLabel11 = new JLabel();
    JLabel jLabel15 = new JLabel();
    JTextField jTextField_name = new JTextField();
    JTextField jTextField_stu_no = new JTextField();
    JComboBox jComboBox_sex = new JComboBox();
    JComboBox jComboBox_nation = new JComboBox();
    JFormattedTextField jFormattedTextField_birthday = new JFormattedTextField();
    JComboBox jComboBox_polity = new JComboBox();
    JTextField jTextField_score = new JTextField();
    JTextField jTextField_home_phone = new JTextField();
    JComboBox jComboBox_source = new JComboBox();
    JTextField jTextField_address = new JTextField();
    JComboBox jComboBox_college = new JComboBox();
    JComboBox jComboBox_department = new JComboBox();
    JComboBox jComboBox_class = new JComboBox();
    JComboBox jComboBox_Build_no = new JComboBox();
    JComboBox jComboBox_apartment_no = new JComboBox();

    public MyStudentInfoPanel(boolean e){
        try {
            initialize(e);//初始化父類
            //jPanel_text.setLayout();
            /*jPanel_text.add(jLabel_birthday, new XYConstraints(38, 102, 97, 42));
            jPanel_text.add(jLabel_score, new XYConstraints(448, 106, 98, 35));
            jPanel_text.add(jLabel_address, new XYConstraints(38, 240, 97, 35));
            jPanel_text.add(jLabel_stu_no, new XYConstraints(183, 38, 36, 38));
            jPanel_text.add(jLabel_name, new XYConstraints(38, 38, 37, 39));
            jPanel_text.add(jLabel_nation, new XYConstraints(505, 40, 46, 36));
            jPanel_text.add(jLabel_source, new XYConstraints(38, 171, 73, 42));
            jPanel_text.add(jLabel_home_phone, new XYConstraints(259, 175, -1, 35));
            jPanel_text.add(jLabel_polity, new XYConstraints(253, 101, 58, 42));
            jPanel_text.add(jTextField_home_phone, new XYConstraints(354, 175, 185, 33));
            jPanel_text.add(jComboBox_source, new XYConstraints(128, 177, 102, 30));
            jPanel_text.add(jComboBox_polity, new XYConstraints(318, 105, 94, 31));
            jPanel_text.add(jComboBox_nation, new XYConstraints(552, 40, 100, 30));
            jPanel_text.add(jTextField_name, new XYConstraints(85, 39, 76, 31));
            jPanel_text.add(jTextField_stu_no, new XYConstraints(218, 40, 94, 30));
            jPanel_text.add(jFormattedTextField_birthday, new XYConstraints(104, 107, 140, 32));
            jPanel_text.add(jTextField_score, new XYConstraints(530, 107, 89, 29));
            jPanel_text.add(jTextField_address, new XYConstraints(113, 242, 532, 32));
            jPanel_text.add(jLabel13, new XYConstraints(573, 302, 92, 36));
            jPanel_text.add(jLabel_college, new XYConstraints(274, 302, 103, 36));
            jPanel_text.add(jComboBox_class, new XYConstraints(23, 358, 224, 30));
            jPanel_text.add(jLabel14, new XYConstraints(276, 353, 89, 36));
            jPanel_text.add(jLabel11, new XYConstraints(423, 358, 86, 33));
            jPanel_text.add(jLabel15, new XYConstraints(579, 354, 86, 41));
            jPanel_text.add(jComboBox_college, new XYConstraints(24, 302, 238, 32));
            jPanel_text.add(jComboBox_department, new XYConstraints(386, 304, 175, 31));
            jPanel_text.add(jComboBox_Build_no, new XYConstraints(355, 358, 65, 32));
            jPanel_text.add(jComboBox_apartment_no, new XYConstraints(474, 358, 99, 32));
            jPanel_text.add(jComboBox_sex, new XYConstraints(395, 40, 59, 29));
            jPanel_text.add(jLabel_sex, new XYConstraints(345, 35, 51, 36));*/
            //initialize(e);//初始化父類
            //setSwingEnable(e)
        } catch (Exception ex) {
        }
    }
    protected void initialize(boolean e){
        try {
            super.initialize(e);
            jLabel_name.setText("姓名");
            jLabel_nation.setText("民族");
            jLabel_source.setText("學生來源");
            jLabel_home_phone.setText("家庭聯系電話");
            jLabel_stu_no.setText("學號");
            jLabel_birthday.setText("出生日期");
            jLabel_score.setText("入學成績");
            jLabel_address.setText("家庭住址");
            jLabel_sex.setText("性別");
            jLabel_polity.setText("政治面貌");
            jLabel_college.setText("學院");
            jLabel13.setText("系");
            jLabel14.setText("班");
            jLabel11.setText("號樓");
            jLabel15.setText("宿舍");

            jPanel_text.add(jLabel_birthday, new XYConstraints(38, 102, 97, 42));
            jPanel_text.add(jLabel_score, new XYConstraints(448, 106, 98, 35));
            jPanel_text.add(jLabel_address, new XYConstraints(38, 240, 97, 35));
            jPanel_text.add(jLabel_stu_no, new XYConstraints(183, 38, 36, 38));
            jPanel_text.add(jLabel_name, new XYConstraints(38, 38, 37, 39));
            jPanel_text.add(jLabel_nation, new XYConstraints(505, 40, 46, 36));
            jPanel_text.add(jLabel_source, new XYConstraints(38, 171, 73, 42));
            jPanel_text.add(jLabel_home_phone, new XYConstraints(259, 175, -1, 35));
            jPanel_text.add(jLabel_polity, new XYConstraints(253, 101, 58, 42));
            jPanel_text.add(jTextField_home_phone, new XYConstraints(354, 175, 185, 33));
            jPanel_text.add(jComboBox_source, new XYConstraints(128, 177, 102, 30));
            jPanel_text.add(jComboBox_polity, new XYConstraints(318, 105, 94, 31));
            jPanel_text.add(jComboBox_nation, new XYConstraints(552, 40, 100, 30));
            jPanel_text.add(jTextField_name, new XYConstraints(85, 39, 76, 31));
            jPanel_text.add(jTextField_stu_no, new XYConstraints(218, 40, 94, 30));
            jPanel_text.add(jFormattedTextField_birthday, new XYConstraints(104, 107, 140, 32));
            jPanel_text.add(jTextField_score, new XYConstraints(530, 107, 89, 29));
            jPanel_text.add(jTextField_address, new XYConstraints(113, 242, 532, 32));
            jPanel_text.add(jLabel13, new XYConstraints(573, 302, 92, 36));
            jPanel_text.add(jLabel_college, new XYConstraints(274, 302, 103, 36));
            jPanel_text.add(jComboBox_class, new XYConstraints(23, 358, 224, 30));
            jPanel_text.add(jLabel14, new XYConstraints(276, 353, 89, 36));
            jPanel_text.add(jLabel11, new XYConstraints(423, 358, 86, 33));
            jPanel_text.add(jLabel15, new XYConstraints(579, 354, 86, 41));
            jPanel_text.add(jComboBox_college, new XYConstraints(24, 302, 238, 32));
            jPanel_text.add(jComboBox_department, new XYConstraints(386, 304, 175, 31));
            jPanel_text.add(jComboBox_Build_no, new XYConstraints(355, 358, 65, 32));
            jPanel_text.add(jComboBox_apartment_no, new XYConstraints(474, 358, 99, 32));
            jPanel_text.add(jComboBox_sex, new XYConstraints(395, 40, 59, 29));
            jPanel_text.add(jLabel_sex, new XYConstraints(345, 35, 51, 36));
        } catch (Exception ex) {
        }
        jComboBox_college.addActionListener(new
                MyStudentInfoPanel_jComboBox_college_actionAdapter(this));
        jComboBox_department.addActionListener(new
                MyStudentInfoPanel_jComboBox_department_actionAdapter(this));
        jComboBox_Build_no.addActionListener(new
                MyStudentInfoPanel_jComboBox_Build_no_actionAdapter(this));
    }
    public void setSwingEnable(boolean e) {//父類初始化調用
        jTextField_home_phone.setEnabled(e);
        jComboBox_source.setEnabled(e);
        jComboBox_polity.setEnabled(e);
        jComboBox_nation.setEnabled(e);
        jTextField_name.setEnabled(e);
        jTextField_stu_no.setEnabled(e);
        jFormattedTextField_birthday.setEnabled(e);
        jTextField_score.setEnabled(e);
        jTextField_address.setEnabled(e);
        jComboBox_class.setEnabled(e);
        jComboBox_college.setEnabled(e);
        jComboBox_department.setEnabled(e);
        jComboBox_Build_no.setEnabled(e);
        jComboBox_apartment_no.setEnabled(e);
        jComboBox_sex.setEnabled(e);
        jButton_ref.setVisible(e);
        jButton_sav.setVisible(e);
        jButton_remove.setVisible(e);
    }

    public boolean delete() {//父類按鈕響應
        return SQLRunner.executSql("delete from student where stu_no='"+keyValue+"'");
    }

    public boolean update() {//父類按鈕響應
        try{
            String class_no;
            if(jComboBox_class.getSelectedItem()==null){
                class_no="";
            }else{
                String clname=(String)(jComboBox_class.getSelectedItem());
                ResultSet rs=SQLRunner.getResult("select * from class where clname='"+clname+"'");
                if(!rs.next())System.out.println("can't find clname");
                class_no=rs.getString("class_no").trim();
            }
            String score=jTextField_score.getText().trim();
            if(score.equals(""))score="null";
            String sname=jTextField_name.getText().trim();
            String stu_no=jTextField_stu_no.getText().trim();
            String home_phone=jTextField_home_phone.getText().trim();
            String address=jTextField_address.getText().trim();
            String nation;
            if(jComboBox_nation.getSelectedItem()==null){
                nation="";
            }else{
                nation=((String)jComboBox_nation.getSelectedItem()).trim();
            }String Build_no;
            if(jComboBox_Build_no.getSelectedItem()==null){
                Build_no="";
            }else{
                Build_no=((String)jComboBox_Build_no.getSelectedItem()).trim();
            }String sex;
            if(jComboBox_sex.getSelectedItem()==null){
                sex="";
            }else{
                sex=((String)jComboBox_sex.getSelectedItem()).trim();
            }String polity;
            if(jComboBox_polity.getSelectedItem()==null){
                polity="";
            }else{
                polity=((String)jComboBox_polity.getSelectedItem()).trim();
            }String source;
            if(jComboBox_source.getSelectedItem()==null){
                source="";
            }else{
                source=((String)jComboBox_source.getSelectedItem()).trim();
            }String dorm_no;
            if(jComboBox_Build_no.getSelectedItem()==null||jComboBox_apartment_no.getSelectedItem()==null){
                dorm_no="";
            }else{
                dorm_no=((String)jComboBox_Build_no.getSelectedItem()).trim()+((String)jComboBox_apartment_no.getSelectedItem()).trim();
            }String updatesql="update student set class_no='"+class_no+"',dorm_no='"+dorm_no+"',nation='"+nation+"',polity='"+polity+"',sex='"+sex+"',source='"+source+"',home_phone='"+home_phone+"',address='"+address+"',score="+score+",sname='"+sname+"' where stu_no='"+stu_no+"'";
            return SQLRunner.executSql(updatesql);
        }catch(Exception e){
            JOptionPane.showMessageDialog(null,e.toString(),"系統提示",JOptionPane.ERROR_MESSAGE);
            return false;
        }
    }

    public boolean insert() {//父類按鈕響應
        try{
            String class_no;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区二区视频| 777午夜精品视频在线播放| 日韩一级视频免费观看在线| 一区在线观看视频| 亚洲综合色噜噜狠狠| 99久久综合色| 国产精品国产精品国产专区不片| 青青草国产成人av片免费| 欧美性感一区二区三区| 中日韩av电影| 不卡的看片网站| 久久久久久久网| 国产乱淫av一区二区三区| 日韩免费视频线观看| 国产凹凸在线观看一区二区| 日韩欧美久久一区| 蜜桃av一区二区在线观看| 日韩欧美在线不卡| 国产伦精一区二区三区| 亚洲欧洲性图库| 欧美性猛交xxxxxxxx| 五月综合激情日本mⅴ| 日韩免费视频一区二区| 不卡一二三区首页| 夜夜夜精品看看| 精品国产91亚洲一区二区三区婷婷| 中文一区在线播放| 99久久免费精品| 亚洲.国产.中文慕字在线| 欧洲精品一区二区三区在线观看| 国产精品乱子久久久久| 欧美性受xxxx黑人xyx性爽| 日韩高清不卡一区二区三区| 一区二区三区av电影| 欧美一级日韩一级| 国产91富婆露脸刺激对白| 欧美伊人精品成人久久综合97| 色狠狠色狠狠综合| 色婷婷国产精品久久包臀| 午夜精品久久久久久久| 欧美激情一区二区三区不卡| 欧美日本在线播放| 91蜜桃免费观看视频| 国产馆精品极品| 久久精品国产久精国产爱| 玉米视频成人免费看| 国产精品美女久久久久久久网站| 欧美一区二区在线观看| 99精品国产91久久久久久| 黄色小说综合网站| 精品亚洲成a人| 欧美a级理论片| 午夜久久久久久久久久一区二区| 中文字幕中文字幕中文字幕亚洲无线| 日韩一区二区免费视频| 欧美精品精品一区| 在线综合视频播放| 欧美另类一区二区三区| 欧美一区二区三区免费在线看 | 91在线视频免费91| www.欧美日韩国产在线| 成人网页在线观看| 成人手机在线视频| 色先锋资源久久综合| 99久久久免费精品国产一区二区| 欧美精品日日鲁夜夜添| 精品美女在线播放| 久久亚洲二区三区| |精品福利一区二区三区| 日韩久久一区二区| 婷婷综合另类小说色区| 另类综合日韩欧美亚洲| 成人小视频免费在线观看| 99久久777色| 欧美亚洲一区三区| 久久久久久久久97黄色工厂| 亚洲欧美视频在线观看视频| 日韩精品视频网站| 成人免费黄色在线| 777奇米成人网| 国产精品色一区二区三区| 亚洲精品免费在线| 国产iv一区二区三区| 欧美福利视频一区| **网站欧美大片在线观看| 久久电影网电视剧免费观看| 99re在线精品| 国产精品色噜噜| 国产精品主播直播| 97精品久久久久中文字幕 | 精品在线观看视频| 欧美视频在线观看一区二区| 国产丝袜欧美中文另类| 黄色小说综合网站| 91麻豆精品国产自产在线观看一区 | 国产欧美日韩视频在线观看| 美女视频黄久久| 日韩一二三四区| 激情偷乱视频一区二区三区| 日韩免费看的电影| 久久精品国产亚洲高清剧情介绍| 日韩欧美视频在线| 处破女av一区二区| 亚洲无人区一区| 91精品国产乱码| 久久精品99国产精品| 69堂成人精品免费视频| 青青草成人在线观看| 日韩精品一区二区三区老鸭窝| 久热成人在线视频| 欧美激情资源网| 在线精品视频一区二区三四| 日本不卡一二三区黄网| 国产精品午夜免费| 欧美日韩aaaaa| 福利一区福利二区| 亚洲国产成人av| 国产视频不卡一区| 制服丝袜中文字幕一区| 成人教育av在线| 天堂一区二区在线免费观看| 欧美激情一区二区三区| 色天天综合久久久久综合片| 蜜臀99久久精品久久久久久软件 | 欧美一级久久久| 91蜜桃婷婷狠狠久久综合9色| 日韩电影在线看| 国内精品久久久久影院色| 日本美女一区二区| 夜夜精品视频一区二区| 国产精品电影一区二区三区| 欧美成人三级电影在线| 欧美精品欧美精品系列| 91浏览器在线视频| 91在线视频网址| 91小视频在线| 一本一本大道香蕉久在线精品 | 精品一区二区三区免费播放| 一区二区三区免费在线观看| 亚洲精品欧美综合四区| 国产精品传媒入口麻豆| 国产精品毛片无遮挡高清| 国产欧美一区二区三区在线老狼| 欧美大片顶级少妇| 国产亚洲精品资源在线26u| 欧美精品一区二区在线播放| 精品国产污网站| 国产无一区二区| 国产精品毛片无遮挡高清| 亚洲欧洲一区二区在线播放| 亚洲嫩草精品久久| 亚洲香肠在线观看| 免费一级欧美片在线观看| 久久福利资源站| 成人av在线一区二区三区| 99久久免费精品| 欧美日本精品一区二区三区| 日韩一二三四区| 亚洲三级免费电影| 日韩影院在线观看| 国产又粗又猛又爽又黄91精品| 国产成人av影院| 日本精品一级二级| 欧美一区二区三区在线观看视频| 久久蜜桃香蕉精品一区二区三区| 国产精品久久久久久久第一福利 | 欧美唯美清纯偷拍| 欧美精品一区二区久久久| 日本一区二区视频在线观看| 亚洲一区二区在线免费看| 欧美日韩大陆一区二区| 精品国产乱码久久| 亚洲午夜久久久久久久久久久| 国产精品一区二区在线看| 欧美精品在线视频| 玉足女爽爽91| 91丨九色porny丨蝌蚪| 欧美精品一区二区三区一线天视频| 一区二区三区欧美在线观看| 国产一区二区三区四| 欧美不卡视频一区| 天堂成人国产精品一区| 色噜噜狠狠成人中文综合| 中文字幕欧美日韩一区| 国产精品一卡二| 欧美日韩国产高清一区二区三区| 中文字幕免费不卡| 国产精品一卡二卡| 精品裸体舞一区二区三区| 日本美女一区二区| 欧美电影免费观看完整版| 亚洲国产精品精华液网站| 91九色最新地址| 亚洲自拍偷拍欧美| 欧美亚洲综合色| 午夜欧美电影在线观看| 日韩欧美综合在线| 国产福利不卡视频| 亚洲区小说区图片区qvod| 在线观看不卡一区|