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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mystudentinfopanel.java~36~

?? 使用JBuilder基于Oracle數(shù)據(jù)庫的課程作業(yè)
?? JAVA~36~
?? 第 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 MyInfoPanel {
    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("學(xué)生來源");
            jLabel_home_phone.setText("家庭聯(lián)系電話");
            jLabel_stu_no.setText("學(xué)號");
            jLabel_birthday.setText("出生日期");
            jLabel_score.setText("入學(xué)成績");
            jLabel_address.setText("家庭住址");
            jLabel_sex.setText("性別");
            jLabel_polity.setText("政治面貌");
            jLabel_college.setText("學(xué)院");
            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) {//父類初始化調(diào)用
        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() {//父類按鈕響應(yīng)
        //String stu_no=jTextField_stu_no.getText().trim();
        return SQLRunner.executSql("delete from student where stu_no='"+keyValue+"'");
    }

    public boolean update() {//父類按鈕響應(yīng)
        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(),"系統(tǒng)提示",JOptionPane.ERROR_MESSAGE);
            return false;
        }
    }

    public boolean insert() {//父類按鈕響應(yīng)
        try{

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩高清一级片| 亚洲一区二区精品久久av| 欧美一区二区啪啪| 日本高清不卡视频| 东方aⅴ免费观看久久av| 亚洲一区二区黄色| 亚洲欧美偷拍另类a∨色屁股| 久久久亚洲国产美女国产盗摄 | 欧美狂野另类xxxxoooo| av不卡一区二区三区| 国产成人在线观看| 国产精品香蕉一区二区三区| 麻豆成人av在线| 亚洲精品免费在线| 久久综合一区二区| 久久久亚洲精品石原莉奈| 日韩精品一区国产麻豆| 在线综合视频播放| 欧美日本一区二区在线观看| 欧美日韩国产一区| 欧美日韩一区二区三区不卡| 欧美性色黄大片| 日本精品视频一区二区| 在线观看www91| 欧美日韩一区高清| 欧美日韩精品一区二区三区蜜桃 | 一区二区三区蜜桃网| 亚洲欧美在线视频| 亚洲日本在线看| 亚洲免费av在线| 亚洲国产乱码最新视频| 日韩理论片网站| 国产欧美日韩麻豆91| 国产精品午夜在线| 日韩一区日韩二区| 一区二区三区中文字幕| 亚洲一区二区精品久久av| 午夜精品久久久久久久久久久| 亚洲成人手机在线| 美国av一区二区| 国产成人夜色高潮福利影视| 成人app下载| 欧美撒尿777hd撒尿| 91精品国产综合久久久久久 | 91麻豆免费视频| 91久久精品网| 欧美一区二区三区在线看| 久久综合五月天婷婷伊人| 国产欧美一区二区在线观看| 亚洲三级电影网站| 日韩激情一二三区| 国产精品亚洲视频| 国产成人免费高清| 91国内精品野花午夜精品 | 久久久久久久综合狠狠综合| 欧美成人猛片aaaaaaa| 久久精品夜色噜噜亚洲a∨| 自拍偷拍欧美激情| 午夜av一区二区三区| 日韩成人dvd| 丁香六月综合激情| 欧美日韩成人综合天天影院 | 一区在线中文字幕| 亚洲不卡av一区二区三区| 精品夜夜嗨av一区二区三区| 99热99精品| 日韩一区二区三区av| 亚洲国产精品传媒在线观看| 亚洲成a人v欧美综合天堂| 国产一区二区三区观看| 色老汉av一区二区三区| 欧美日韩综合一区| 国产清纯在线一区二区www| 亚洲一区二区三区中文字幕| 精品一区二区在线免费观看| 91丝袜美女网| 26uuu国产日韩综合| 亚洲欧美一区二区三区国产精品 | 在线精品亚洲一区二区不卡| 26uuu亚洲综合色欧美| 一级特黄大欧美久久久| 国产精品99久久久久久久女警 | 亚洲欧美日韩系列| 免费亚洲电影在线| 一本大道av一区二区在线播放| 精品久久久久久久一区二区蜜臀| 尤物av一区二区| 丰满放荡岳乱妇91ww| 欧美大尺度电影在线| 亚洲一区二区三区中文字幕在线| 成人av资源下载| 精品国产一区二区三区四区四 | 99久久免费精品高清特色大片| 欧美久久久一区| 国产亚洲一区二区三区四区| 偷拍亚洲欧洲综合| 91女人视频在线观看| 国产欧美一区二区精品性色超碰| 日韩—二三区免费观看av| 91色婷婷久久久久合中文| 国产欧美日本一区二区三区| 日韩福利电影在线观看| 欧美丝袜丝nylons| 亚洲女人的天堂| 国产91精品精华液一区二区三区 | 亚洲午夜精品网| a级精品国产片在线观看| 久久久精品国产免大香伊| 一区二区三区在线影院| 91在线一区二区| 国产日韩精品一区| 国产在线看一区| 欧洲国内综合视频| 亚洲私人影院在线观看| 色综合久久久网| 一区二区三区国产精品| 欧美视频在线一区| 日韩影院免费视频| 日韩欧美一区二区久久婷婷| 激情综合色综合久久综合| www一区二区| 成人丝袜18视频在线观看| 中文字幕一区二区三区四区不卡 | 777午夜精品免费视频| 男人操女人的视频在线观看欧美| 欧美一级高清片在线观看| 国产在线精品免费| 国产人成一区二区三区影院| 99久久精品国产毛片| 亚洲一卡二卡三卡四卡五卡| 欧美一区二区三区婷婷月色| 国产精品一区免费在线观看| 中文字幕不卡一区| 精品视频在线看| 国产最新精品免费| 亚洲人成伊人成综合网小说| 欧美日韩成人综合| 国产在线精品视频| 亚洲三级免费电影| 在线播放日韩导航| 国产乱码精品一品二品| 亚洲日穴在线视频| 日韩一级片在线观看| 成人一区二区三区视频| 亚洲综合男人的天堂| 日韩亚洲电影在线| 99久久久无码国产精品| 热久久国产精品| 国产精品久久国产精麻豆99网站| 欧美日韩情趣电影| 国产精品影视在线观看| 亚洲午夜精品17c| 国产日韩高清在线| 91麻豆精品国产91久久久久| 成人污污视频在线观看| 午夜天堂影视香蕉久久| 欧美激情一区二区三区四区| 6080日韩午夜伦伦午夜伦| 粉嫩aⅴ一区二区三区四区五区| 午夜视频一区二区| 国产日韩精品久久久| 欧美日本国产视频| 国产 欧美在线| 三级在线观看一区二区| 亚洲国产成人在线| 欧美一级午夜免费电影| 91亚洲国产成人精品一区二区三| 美女精品自拍一二三四| 亚洲精品免费看| 久久精品一区二区| 91精品国产欧美一区二区成人| 99re视频精品| 国产精品乡下勾搭老头1| 日日噜噜夜夜狠狠视频欧美人| 亚洲视频图片小说| 久久久久9999亚洲精品| 欧美一区二区三区免费| 在线免费观看日本欧美| 不卡的av网站| 国产一区二区三区观看| 日韩高清在线不卡| 一区二区三区四区五区视频在线观看| 国产日产精品一区| 欧美精品一区二区三区高清aⅴ| 精品视频在线视频| 在线一区二区三区| 岛国精品一区二区| 国产毛片精品一区| 精品一区二区三区在线观看| 日日嗨av一区二区三区四区| 亚洲午夜影视影院在线观看| 亚洲日本乱码在线观看| 国产精品网曝门| 久久久久久电影| 精品久久久久久综合日本欧美| 3d动漫精品啪啪| 欧美丰满少妇xxxxx高潮对白| 在线亚洲欧美专区二区| 色婷婷久久久亚洲一区二区三区 | 欧美国产日韩一二三区|