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

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

?? jdialogframe1.java~46~

?? JAVA教學用代碼
?? JAVA~46~
字號:
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.getRootPane().setDefaultButton(jButton7);
        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.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"};
        JOptionPane.showOptionDialog(this,"請選擇","提示",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,a1,option,option[1]);
//        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精品国产乱| 国产精品中文字幕日韩精品 | 椎名由奈av一区二区三区| youjizz国产精品| 亚洲免费毛片网站| 欧美在线视频不卡| 亚洲国产日日夜夜| 日韩一级免费观看| 国产伦精品一区二区三区免费迷| 久久综合久久综合九色| 国产91丝袜在线观看| 亚洲视频电影在线| 欧美剧情片在线观看| 精品一区二区三区免费| 国产精品久久久久9999吃药| 色吊一区二区三区| 久久精品国产精品亚洲精品| 欧美国产日本韩| 欧美日韩一区二区不卡| 国模套图日韩精品一区二区| 中文字幕一区二区三区在线播放 | 久久草av在线| 综合久久综合久久| 欧美sm极限捆绑bd| 日本韩国一区二区三区视频| 精品在线一区二区三区| 亚洲精品高清在线| 久久人人97超碰com| 欧美午夜精品免费| 99re6这里只有精品视频在线观看| 一区二区在线观看视频在线观看| 久久免费国产精品| 欧美日韩视频第一区| 色婷婷精品大在线视频 | 亚洲精品成a人| 国产日韩欧美在线一区| 欧美精品久久一区二区三区| 久久精品国产一区二区| 亚洲电影在线播放| 亚洲免费观看在线观看| 夜夜揉揉日日人人青青一国产精品 | 五月婷婷激情综合| 日韩va亚洲va欧美va久久| 国产精品一区二区久久不卡| 免费精品99久久国产综合精品| 亚洲成a人v欧美综合天堂| 亚洲国产一二三| 日本美女一区二区| 国产精品亚洲一区二区三区妖精 | av电影一区二区| 色偷偷久久人人79超碰人人澡| 日本丶国产丶欧美色综合| 欧美一区二区三区免费观看视频 | 亚洲精品一区二区三区香蕉| 精品国一区二区三区| 亚洲国产高清aⅴ视频| 亚洲黄色小说网站| 国产三级欧美三级日产三级99| 欧美日韩电影一区| 在线播放中文一区| 日韩欧美一级二级三级| 精品久久久久久综合日本欧美| 日韩亚洲国产中文字幕欧美| 日韩免费观看高清完整版 | 亚洲午夜国产一区99re久久| 亚洲国产成人porn| 日本中文字幕一区二区视频 | 国产精品你懂的在线欣赏| 亚洲男女毛片无遮挡| 香蕉久久一区二区不卡无毒影院 | 亚洲欧美另类在线| 性感美女久久精品| 国产一区亚洲一区| 色噜噜狠狠色综合中国| 欧美一区二区三区视频在线| 国产网站一区二区三区| 亚洲午夜日本在线观看| 免费黄网站欧美| 99视频精品免费视频| 欧美日产在线观看| 亚洲精品国产一区二区精华液 | 99这里只有久久精品视频| 日韩三级伦理片妻子的秘密按摩| 久久精品一区二区| 三级欧美韩日大片在线看| 9i看片成人免费高清| 欧美国产日本韩| 国产主播一区二区| 欧美精品久久99| 亚洲一区二区三区在线播放| 欧美日韩在线直播| 欧美日韩一区视频| 欧美日韩一区不卡| 亚洲色图.com| 国产一区激情在线| 中文字幕日韩欧美一区二区三区| 欧美在线你懂得| 色综合天天综合狠狠| 岛国精品在线观看| 在线视频亚洲一区| 一本大道久久a久久综合| 国产精品自在在线| 欧美一二三区精品| 精品综合久久久久久8888| 欧美高清你懂得| 日本在线不卡视频| www国产精品av| 国产精品77777竹菊影视小说| 国产日韩欧美一区二区三区综合| 狠狠色狠狠色综合| 久久精品在线免费观看| 国产伦理精品不卡| 日韩理论在线观看| 欧美日韩一卡二卡| 蜜臀久久99精品久久久久久9| 欧美一级二级三级乱码| 精东粉嫩av免费一区二区三区| 26uuu欧美| 色偷偷88欧美精品久久久| 午夜在线成人av| 久久精品夜夜夜夜久久| 91麻豆国产自产在线观看| 日韩高清不卡在线| 久久婷婷国产综合精品青草| 成人亚洲精品久久久久软件| 亚洲国产欧美一区二区三区丁香婷| 欧美精品一卡两卡| 高清在线不卡av| 日韩成人免费看| 综合激情成人伊人| 精品免费一区二区三区| 972aa.com艺术欧美| 久久激情综合网| 亚洲自拍偷拍图区| 欧美成人福利视频| 欧美色电影在线| 91日韩一区二区三区| 国产成人丝袜美腿| 免费高清在线一区| 午夜久久久久久电影| 成人免费在线视频| 欧美韩日一区二区三区| 久久蜜桃av一区二区天堂| 欧美性感一类影片在线播放| 国产成人精品www牛牛影视| 老司机免费视频一区二区三区| 亚洲综合久久久| 一区二区三区电影在线播| 中文字幕在线不卡视频| 国产丝袜在线精品| 日本一区二区不卡视频| 中文在线一区二区| 欧美国产在线观看| 亚洲欧洲成人精品av97| 国产精品久久久久影院| 18成人在线观看| 国产精品久久综合| 亚洲激情网站免费观看| 亚洲一区二区四区蜜桃| 亚洲第一搞黄网站| 日本免费新一区视频| 国内精品伊人久久久久av影院| 久久狠狠亚洲综合| 国产很黄免费观看久久| 91蝌蚪porny九色| 欧美一区二区在线观看| 国产日韩av一区| 亚洲一二三四区不卡| 麻豆精品精品国产自在97香蕉| 国产电影一区在线| 欧美三区在线视频| 26uuu久久天堂性欧美| 亚洲视频一区在线观看| 日韩成人一区二区| 色哦色哦哦色天天综合| 欧美精品久久天天躁| 中文字幕第一区第二区| 天天影视网天天综合色在线播放| 久久精品免费观看| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 7777女厕盗摄久久久| 国产日韩欧美精品在线| 图片区小说区国产精品视频| 国产精品一区二区x88av| 精品1区2区3区| 中文字幕亚洲欧美在线不卡| 麻豆精品国产传媒mv男同| 欧美无砖专区一中文字| 中文字幕一区二区三区不卡在线 | 国产精品另类一区| 日日夜夜精品免费视频| 91久久精品一区二区三| 最新欧美精品一区二区三区| 国产一区二区三区精品欧美日韩一区二区三区 | 91亚洲精品久久久蜜桃网站| 久久尤物电影视频在线观看|