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

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

?? radiobuttondemo.java

?? java tutorial.sun公司官方出品。java入門書籍。最新版
?? JAVA
字號:
/* * Copyright (c) 1995 - 2008 Sun Microsystems, Inc.  All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * *   - Redistributions of source code must retain the above copyright *     notice, this list of conditions and the following disclaimer. * *   - Redistributions in binary form must reproduce the above copyright *     notice, this list of conditions and the following disclaimer in the *     documentation and/or other materials provided with the distribution. * *   - Neither the name of Sun Microsystems nor the names of its *     contributors may be used to endorse or promote products derived *     from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package components;import java.awt.*;import java.awt.event.*;import javax.swing.*;/* * RadioButtonDemo.java requires these files: *   images/Bird.gif *   images/Cat.gif *   images/Dog.gif *   images/Rabbit.gif *   images/Pig.gif */public class RadioButtonDemo extends JPanel                             implements ActionListener {    static String birdString = "Bird";    static String catString = "Cat";    static String dogString = "Dog";    static String rabbitString = "Rabbit";    static String pigString = "Pig";    JLabel picture;    public RadioButtonDemo() {        super(new BorderLayout());        //Create the radio buttons.        JRadioButton birdButton = new JRadioButton(birdString);        birdButton.setMnemonic(KeyEvent.VK_B);        birdButton.setActionCommand(birdString);        birdButton.setSelected(true);        JRadioButton catButton = new JRadioButton(catString);        catButton.setMnemonic(KeyEvent.VK_C);        catButton.setActionCommand(catString);        JRadioButton dogButton = new JRadioButton(dogString);        dogButton.setMnemonic(KeyEvent.VK_D);        dogButton.setActionCommand(dogString);        JRadioButton rabbitButton = new JRadioButton(rabbitString);        rabbitButton.setMnemonic(KeyEvent.VK_R);        rabbitButton.setActionCommand(rabbitString);        JRadioButton pigButton = new JRadioButton(pigString);        pigButton.setMnemonic(KeyEvent.VK_P);        pigButton.setActionCommand(pigString);        //Group the radio buttons.        ButtonGroup group = new ButtonGroup();        group.add(birdButton);        group.add(catButton);        group.add(dogButton);        group.add(rabbitButton);        group.add(pigButton);        //Register a listener for the radio buttons.        birdButton.addActionListener(this);        catButton.addActionListener(this);        dogButton.addActionListener(this);        rabbitButton.addActionListener(this);        pigButton.addActionListener(this);        //Set up the picture label.        picture = new JLabel(createImageIcon("images/"                                             + birdString                                             + ".gif"));        //The preferred size is hard-coded to be the width of the        //widest image and the height of the tallest image.        //A real program would compute this.        picture.setPreferredSize(new Dimension(177, 122));        //Put the radio buttons in a column in a panel.        JPanel radioPanel = new JPanel(new GridLayout(0, 1));        radioPanel.add(birdButton);        radioPanel.add(catButton);        radioPanel.add(dogButton);        radioPanel.add(rabbitButton);        radioPanel.add(pigButton);        add(radioPanel, BorderLayout.LINE_START);        add(picture, BorderLayout.CENTER);        setBorder(BorderFactory.createEmptyBorder(20,20,20,20));    }    /** Listens to the radio buttons. */    public void actionPerformed(ActionEvent e) {        picture.setIcon(createImageIcon("images/"                                        + e.getActionCommand()                                        + ".gif"));    }    /** Returns an ImageIcon, or null if the path was invalid. */    protected static ImageIcon createImageIcon(String path) {        java.net.URL imgURL = RadioButtonDemo.class.getResource(path);        if (imgURL != null) {            return new ImageIcon(imgURL);        } else {            System.err.println("Couldn't find file: " + path);            return null;        }    }    /**     * Create the GUI and show it.  For thread safety,     * this method should be invoked from the     * event-dispatching thread.     */    private static void createAndShowGUI() {        //Create and set up the window.        JFrame frame = new JFrame("RadioButtonDemo");        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        //Create and set up the content pane.        JComponent newContentPane = new RadioButtonDemo();        newContentPane.setOpaque(true); //content panes must be opaque        frame.setContentPane(newContentPane);        //Display the window.        frame.pack();        frame.setVisible(true);    }    public static void main(String[] args) {        //Schedule a job for the event-dispatching thread:        //creating and showing this application's GUI.        javax.swing.SwingUtilities.invokeLater(new Runnable() {            public void run() {                createAndShowGUI();            }        });    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区2区视频在线观看| 一区二区三区国产精品| 成人午夜免费av| 综合久久国产九一剧情麻豆| 欧美综合天天夜夜久久| 日韩精品一区国产麻豆| 国产在线播放一区| 国产精品美女久久久久aⅴ | 91激情五月电影| 性久久久久久久| 欧美xxxx老人做受| aa级大片欧美| 香港成人在线视频| 精品国产一区二区三区忘忧草 | 亚洲国产日韩在线一区模特| 日韩亚洲欧美中文三级| 丁香婷婷综合五月| 一区二区三区国产精品| 欧美成人r级一区二区三区| 中文字幕一区二区三区乱码在线| 91在线看国产| 丝袜亚洲另类丝袜在线| 国产情人综合久久777777| 色噜噜狠狠色综合欧洲selulu| 日韩一区精品视频| 日本一区二区三区在线不卡| 欧美视频在线播放| 国产一区二区三区免费在线观看 | 亚洲狠狠丁香婷婷综合久久久| 欧美久久久影院| 国产成人精品三级| 午夜视频一区二区三区| 久久精品视频一区二区| 在线亚洲一区二区| 精品在线免费视频| 亚洲乱码国产乱码精品精的特点| 日韩午夜在线观看视频| 99re66热这里只有精品3直播 | 欧美在线一二三| 国产精品99久久久久| 亚洲国产综合在线| 国产成人综合亚洲网站| 午夜视频一区二区| 国产精品福利av| 日韩天堂在线观看| 色婷婷综合久久久中文字幕| 韩国av一区二区| 亚洲第一狼人社区| 国产精品久久久久久久久图文区| 7878成人国产在线观看| 成人av在线一区二区三区| 蜜臀va亚洲va欧美va天堂| 亚洲同性同志一二三专区| 精品国精品国产| 欧美剧情电影在线观看完整版免费励志电影 | 日韩电影在线观看一区| 欧美私模裸体表演在线观看| 国产精品18久久久| 免费成人在线观看| 亚洲宅男天堂在线观看无病毒| 国产日韩三级在线| 日韩三级电影网址| 欧美日韩国产综合久久| 99热精品一区二区| 国产精品91一区二区| 热久久久久久久| 亚洲一区视频在线观看视频| 中文字幕巨乱亚洲| 久久人人爽爽爽人久久久| 777a∨成人精品桃花网| 91黄色小视频| 99久久777色| 国产不卡视频一区| 韩国三级在线一区| 日韩成人一级大片| 亚洲国产一区二区视频| 亚洲天天做日日做天天谢日日欢| 久久久综合网站| 欧美大片日本大片免费观看| 欧美日本在线视频| 在线观看日韩电影| 91丨porny丨最新| 成人国产亚洲欧美成人综合网| 国产三级精品三级| 欧美成人福利视频| 日韩一区二区在线观看视频播放 | 91麻豆国产福利在线观看| 成人网男人的天堂| 国产成人av一区二区| 国内一区二区视频| 国产一区中文字幕| 国产一区二区三区电影在线观看| 蜜臀av一区二区在线免费观看| 爽好久久久欧美精品| 亚洲成人第一页| 亚洲风情在线资源站| 亚洲综合精品自拍| 亚洲一区在线观看网站| 亚洲伊人色欲综合网| 亚洲一二三四区| 亚洲国产婷婷综合在线精品| 亚洲精品老司机| 亚洲精品免费在线| 亚洲精品国久久99热| 一区二区三区在线视频观看58| 在线观看亚洲专区| 91国产精品成人| 在线观看国产日韩| 欧美色手机在线观看| 欧美另类高清zo欧美| 5月丁香婷婷综合| 日韩欧美在线观看一区二区三区| 337p亚洲精品色噜噜| 日韩一区二区免费电影| 精品久久人人做人人爽| 久久噜噜亚洲综合| 国产精品人人做人人爽人人添| 国产精品久久久久桃色tv| 亚洲视频狠狠干| 亚洲午夜久久久| 日韩高清一区在线| 精品一区二区成人精品| 国产精品夜夜爽| a美女胸又www黄视频久久| 在线视频一区二区免费| 欧美精品久久久久久久久老牛影院| 欧美一区二区成人| 久久影院午夜片一区| 中文字幕欧美日韩一区| 欧美性xxxxxx少妇| 91麻豆精品久久久久蜜臀| 日韩欧美亚洲另类制服综合在线| 精品国产凹凸成av人网站| 国产欧美精品在线观看| 亚洲日本va在线观看| 午夜a成v人精品| 国内精品视频一区二区三区八戒 | 99久久伊人精品| 欧美日韩国产免费一区二区 | 日本不卡视频一二三区| 国内成+人亚洲+欧美+综合在线| 豆国产96在线|亚洲| 色婷婷综合激情| 欧美一区二区三区视频免费播放 | 日韩电影一区二区三区四区| 国产一区二区三区久久悠悠色av| 不卡电影一区二区三区| 欧美日韩一区中文字幕| 欧美电影精品一区二区| 国产精品国产精品国产专区不蜜 | 在线综合亚洲欧美在线视频| 久久精品亚洲精品国产欧美| 亚洲精品日韩综合观看成人91| 日韩黄色一级片| 成人深夜福利app| 欧美美女黄视频| 国产亚洲欧美色| 亚洲国产精品影院| 欧美激情中文字幕| 亚洲福中文字幕伊人影院| 精品一区二区三区蜜桃| 91美女福利视频| 日韩欧美国产午夜精品| 亚洲日本电影在线| 久久99精品国产91久久来源| 99久久国产免费看| 欧美一区二区福利在线| 中文字幕制服丝袜成人av| 日韩综合小视频| 99视频精品免费视频| 日韩精品中文字幕一区| 亚洲理论在线观看| 国产一区二三区| 欧美美女一区二区在线观看| 欧美高清在线一区| 天天影视网天天综合色在线播放 | 国产乱码精品1区2区3区| 欧美视频精品在线| 国产欧美一区二区三区在线老狼| 亚洲大片精品永久免费| 成人黄色免费短视频| 日韩亚洲欧美成人一区| 一区二区三区欧美久久| 国产麻豆午夜三级精品| 欧美另类久久久品| 亚洲图片另类小说| 国产精品12区| 日韩一级黄色大片| 一区二区三区欧美久久| 成人综合婷婷国产精品久久| 日韩一二三区不卡| 亚洲国产色一区| av色综合久久天堂av综合| 26uuu亚洲| 日韩在线一二三区| 在线观看不卡视频| 国产精品国产三级国产有无不卡 | 94-欧美-setu| 久久人人97超碰com| 奇米影视在线99精品|