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

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

?? jdialogframe1.java~48~

?? JAVA教學用代碼
?? JAVA~48~
字號:
package dialogexample;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.FlowLayout;
import javax.swing.JButton;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.Color;
import javax.swing.JOptionPane;
import javax.swing.ImageIcon;
import javax.swing.JLabel;

public class JDialogFrame1 extends JFrame {
    JPanel contentPane;
    FlowLayout flowLayout1 = new FlowLayout();
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    JPanel jPanel1 = new JPanel();
    JPanel jPanel2 = new JPanel();
    JButton jButton3 = new JButton();
    JButton jButton4 = new JButton();
    ImageIcon a1=new ImageIcon(".\\b1.jpg");
    JButton jButton5 = new JButton();
    JLabel jLabel1 = new JLabel();
    JPanel jPanel3 = new JPanel();
    JButton jButton6 = new JButton();
    JButton jButton7 = new JButton();
    public JDialogFrame1() {
        try {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    /**
     * Component initialization.
     *
     * @throws java.lang.Exception
     */
    private void jbInit() throws Exception {

        contentPane = (JPanel) getContentPane();
        contentPane.setLayout(flowLayout1);
        setSize(new Dimension(400, 300));
        setTitle("Frame Title");
        jButton1.setText("show");
        jButton1.addActionListener(new JDialogFrame1_jButton1_actionAdapter(this));
        jButton2.setText("jButton2");
        jButton2.addActionListener(new JDialogFrame1_jButton2_actionAdapter(this));
        jPanel1.setBackground(Color.red);
        jPanel2.setBackground(Color.pink);
        jButton3.setText("confirm dialog");
        jButton3.addActionListener(new JDialogFrame1_jButton3_actionAdapter(this));
        jButton4.setText("show error icon");
        jButton4.addActionListener(new JDialogFrame1_jButton4_actionAdapter(this));
        jButton5.setText("Input dialog");
        jButton5.addActionListener(new JDialogFrame1_jButton5_actionAdapter(this));
        jLabel1.setText("您輸入:");
        jButton6.setText("自定義按鈕");
        jButton6.addActionListener(new JDialogFrame1_jButton6_actionAdapter(this));
        jPanel3.setBackground(Color.orange);
        jButton7.setText("jButton7");
           contentPane.getRootPane().setDefaultButton(jButton7);
        contentPane.add(jPanel3);
        jPanel3.add(jButton6);
        contentPane.add(jPanel2);
        jPanel2.add(jButton5);
        jPanel2.add(jButton4);
        jPanel2.add(jButton3);
        contentPane.add(jPanel1);
        contentPane.add(jLabel1);
        jPanel1.add(jButton1);
        jPanel1.add(jButton2);
        jPanel3.add(jButton7);



    }

    public void jButton1_actionPerformed(ActionEvent e) {
//        Dialog1 d1=new Dialog1();
//        d1.setSize(200,110);
//        d1.setVisible(true);
        Dialog2 d2=new Dialog2();
        d2.setSize(200,150);
        d2.setVisible(true);
    }

    public void jButton2_actionPerformed(ActionEvent e) {

    }

    public void jButton4_actionPerformed(ActionEvent e) {
        //只有一個確定按鈕
     //   JOptionPane.showMessageDialog(this,"錯誤調試","錯誤",JOptionPane.ERROR_MESSAGE);
          JOptionPane.showMessageDialog(this,"錯誤調試","錯誤",JOptionPane.INFORMATION_MESSAGE,a1);
    }

    public void jButton3_actionPerformed(ActionEvent e) {
      //  JOptionPane.showConfirmDialog(this,"comfirm dialog","提示信息",JOptionPane.YES_NO_OPTION,JOptionPane.DEFAULT_OPTION,a1);
       JOptionPane.showConfirmDialog(this,"comfirm dialog","提示信息",JOptionPane.OK_CANCEL_OPTION,JOptionPane.ERROR_MESSAGE);
    }

    public void jButton5_actionPerformed(ActionEvent e) {
        //JOptionPane.showInputDialog(this,"請輸入","輸入窗口",JOptionPane.QUESTION_MESSAGE);
        //下拉列表
        String [] values={"aaa","abc","dsfds"};
        String result="";

       // result=(String)JOptionPane.showInputDialog(this,"請輸入","輸入窗口",JOptionPane.QUESTION_MESSAGE,null,values,values[0]);
      result=(String)JOptionPane.showInputDialog(this,"請輸入姓名","提示",JOptionPane.INFORMATION_MESSAGE);
       //JOptionPane.showInputDialog(this,"請輸入","提示",JOptionPane.INFORMATION_MESSAGE,null,values,values[1]);
        jLabel1.setText(" 你輸入的姓名是:"+result);

    }

    public void jButton6_actionPerformed(ActionEvent e) {
        String [] option={"脫產22","脫產24"};

       int result= JOptionPane.showOptionDialog(this,"請選擇","提示",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,a1,option,option[1]);

       if(result==0)
       {
           JOptionPane.showMessageDialog(this,"你選擇了22班","標題",JOptionPane.INFORMATION_MESSAGE);
       }
       if(result==1)
       {
            JOptionPane.showMessageDialog(this,"你選擇了24班","標題",JOptionPane.INFORMATION_MESSAGE);
       }
//        String [] option={"喜歡","不喜歡","取消"};
//        int result=JOptionPane.showOptionDialog(this,"你喜歡java嗎!","題目",
//                                                JOptionPane.YES_NO_CANCEL_OPTION,
//                                                JOptionPane.QUESTION_MESSAGE,null,option,option[1]);
//        if(result==JOptionPane.YES_OPTION)
//        {
//            jLabel1.setText(result+" 喜歡");
//        }
//        if(result==JOptionPane.NO_OPTION)
//        {
//            jLabel1.setText(result+"不喜歡");
//        }
//        if(result==JOptionPane.CANCEL_OPTION)
//        {
//            jLabel1.setText(result+"取消");
//        }
//        if(result==JOptionPane.CLOSED_OPTION)
//        {
//            jLabel1.setText(result+"關閉");
//        }

    }
}


class JDialogFrame1_jButton6_actionAdapter implements ActionListener {
    private JDialogFrame1 adaptee;
    JDialogFrame1_jButton6_actionAdapter(JDialogFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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


class JDialogFrame1_jButton5_actionAdapter implements ActionListener {
    private JDialogFrame1 adaptee;
    JDialogFrame1_jButton5_actionAdapter(JDialogFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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


class JDialogFrame1_jButton3_actionAdapter implements ActionListener {
    private JDialogFrame1 adaptee;
    JDialogFrame1_jButton3_actionAdapter(JDialogFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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


class JDialogFrame1_jButton4_actionAdapter implements ActionListener {
    private JDialogFrame1 adaptee;
    JDialogFrame1_jButton4_actionAdapter(JDialogFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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


class JDialogFrame1_jButton2_actionAdapter implements ActionListener {
    private JDialogFrame1 adaptee;
    JDialogFrame1_jButton2_actionAdapter(JDialogFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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


class JDialogFrame1_jButton1_actionAdapter implements ActionListener {
    private JDialogFrame1 adaptee;
    JDialogFrame1_jButton1_actionAdapter(JDialogFrame1 adaptee) {
        this.adaptee = adaptee;
    }

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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品视频一二三区| 欧美一区二区久久| 一区免费观看视频| 91首页免费视频| 亚洲综合在线电影| 欧美日韩高清影院| 久久国产综合精品| 国产精品视频你懂的| 99re这里只有精品首页| 一区二区三区**美女毛片| 欧美午夜电影在线播放| 免费成人美女在线观看.| 久久天天做天天爱综合色| 成人综合婷婷国产精品久久| 国产精品另类一区| 欧美日韩美女一区二区| 久久99国产精品尤物| 中文av一区二区| 色婷婷精品大在线视频| 蜜臀99久久精品久久久久久软件| 精品少妇一区二区三区| 国产精品原创巨作av| 夜夜夜精品看看| 日韩视频一区二区三区在线播放| 国产精品一区二区男女羞羞无遮挡 | 蜜桃一区二区三区在线| 久久精子c满五个校花| 99re这里只有精品视频首页| 亚洲一级不卡视频| 久久九九全国免费| 欧美日韩一区二区三区不卡| 国精品**一区二区三区在线蜜桃| 亚洲视频一区在线观看| 日韩精品一区二区三区视频播放 | 午夜av区久久| ww亚洲ww在线观看国产| 色噜噜狠狠色综合欧洲selulu| 日本欧美一区二区三区乱码| 亚洲丝袜精品丝袜在线| 久久综合色之久久综合| 欧美日韩亚洲高清一区二区| 国产成人精品免费看| 三级欧美在线一区| 成人免费在线视频| 久久天天做天天爱综合色| 欧美高清hd18日本| 色综合天天综合狠狠| 激情综合色综合久久综合| 亚洲图片自拍偷拍| 亚洲男人天堂av| 欧美极品xxx| 精品国产第一区二区三区观看体验| 91免费视频网址| 国产成人av电影在线| 另类欧美日韩国产在线| 亚洲国产另类av| 亚洲欧洲国产日韩| 国产欧美精品日韩区二区麻豆天美| 在线成人av网站| 91久久精品一区二区三区| 99精品视频在线免费观看| 精品一区二区三区日韩| 午夜私人影院久久久久| 亚洲乱码日产精品bd| 国产精品午夜电影| 久久久久国产成人精品亚洲午夜| 欧美一区二区三区成人| 欧美色成人综合| 欧美色图在线观看| 欧美亚洲国产怡红院影院| 色哟哟一区二区| 一本到不卡免费一区二区| 91在线小视频| 色悠悠久久综合| 日本大香伊一区二区三区| jlzzjlzz国产精品久久| 99精品视频一区二区| www.日韩精品| 91在线一区二区| 欧美性生活大片视频| 欧美色图免费看| 欧美一区二区视频网站| 日韩一区二区在线看片| 欧美大胆一级视频| 26uuuu精品一区二区| 久久精品亚洲精品国产欧美kt∨| 久久久久久久久97黄色工厂| 久久久亚洲午夜电影| 中文字幕 久热精品 视频在线 | 高清不卡一区二区在线| 丁香婷婷综合五月| 色综合久久99| 777a∨成人精品桃花网| 精品国产123| 中国色在线观看另类| 亚洲欧美另类小说| 日韩av一区二区三区| 激情综合色播五月| 99久久精品免费| 欧美另类一区二区三区| xvideos.蜜桃一区二区| 1000部国产精品成人观看| 亚洲二区视频在线| 国产一区在线观看视频| 97精品国产97久久久久久久久久久久| 91国产丝袜在线播放| 日韩一区二区三区av| 中文幕一区二区三区久久蜜桃| 亚洲女爱视频在线| 久久av资源站| 97久久人人超碰| 555夜色666亚洲国产免| 国产欧美日韩久久| 亚洲综合丝袜美腿| 国产精品原创巨作av| 欧美在线三级电影| 久久亚洲欧美国产精品乐播| 亚洲免费av观看| 韩国欧美国产一区| 在线亚洲+欧美+日本专区| 精品国产一区二区精华| 一卡二卡欧美日韩| 国产成人综合自拍| 欧美日韩一区中文字幕| 久久精品夜色噜噜亚洲aⅴ| 亚洲午夜私人影院| 国产成人精品三级| 欧美一级理论片| 一区二区三区精品视频| 国产经典欧美精品| 91精品国产综合久久久久久久| 中文字幕第一区二区| 免费在线观看日韩欧美| 91亚洲永久精品| 国产日产精品1区| 日本欧美在线看| 精品1区2区3区| 综合电影一区二区三区 | 久久午夜电影网| 日韩国产欧美在线观看| 色先锋久久av资源部| 国产亚洲一区二区三区四区| 日韩中文字幕1| 精品视频在线免费| 亚洲美女视频在线| 成人免费观看av| 国产日产欧美一区二区视频| 蜜桃91丨九色丨蝌蚪91桃色| 欧美三级视频在线播放| 中文字幕综合网| fc2成人免费人成在线观看播放| 亚洲精品一区二区三区香蕉| 图片区小说区区亚洲影院| 日本黄色一区二区| 亚洲人精品一区| 91美女片黄在线| 亚洲女人小视频在线观看| 成人黄色网址在线观看| 久久免费看少妇高潮| 国产综合久久久久久久久久久久| 欧美最猛黑人xxxxx猛交| 《视频一区视频二区| 91小宝寻花一区二区三区| 国产精品国产成人国产三级| 国产成人午夜精品影院观看视频 | 国产成人久久精品77777最新版本| 欧美一级视频精品观看| 免费高清在线视频一区·| 日韩一区二区免费视频| 日韩不卡一区二区| 日韩亚洲欧美一区| 久久精品99国产国产精| 26uuu欧美| www.亚洲人| 一区二区三区精品在线观看| 欧美视频你懂的| 日韩精品电影在线| 日韩一级黄色大片| 精品亚洲免费视频| 国产欧美日韩亚州综合| 99re这里只有精品6| 夜夜爽夜夜爽精品视频| 欧美日本在线播放| 麻豆传媒一区二区三区| 久久理论电影网| 91在线视频观看| 五月婷婷综合在线| 久久久久久久久久久黄色| www.久久精品| 午夜电影一区二区三区| 日韩精品一区二区三区中文精品| 国产精品一区二区果冻传媒| 国产精品无遮挡| 欧洲国产伦久久久久久久| 免费观看一级欧美片| 国产欧美日产一区| 欧美视频一区在线| 国产精品一品视频| 亚洲国产毛片aaaaa无费看| 欧美大片一区二区三区|