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

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

?? radiobuttondemo.java

?? java tutotrials or beginners
?? JAVA
字號(hào):
/* * 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();            }        });    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
高清国产午夜精品久久久久久| 日韩免费视频一区二区| 欧美丰满嫩嫩电影| 精品福利在线导航| 国产三级三级三级精品8ⅰ区| 国产偷v国产偷v亚洲高清| 国产精品久久久久影院色老大| 亚洲电影第三页| 国产精品一区免费视频| 在线视频亚洲一区| 欧美精品一区二区三区很污很色的| 国产精品美女一区二区三区| 亚洲成人午夜电影| 成人午夜精品在线| 91精品国产综合久久福利软件| 国产亚洲午夜高清国产拍精品 | 国产精品1024| 91黄色免费看| 国产午夜亚洲精品不卡| 午夜在线成人av| 成人精品鲁一区一区二区| 欧美性生活久久| 国产亚洲欧美日韩日本| 舔着乳尖日韩一区| 成人avav在线| 2017欧美狠狠色| 亚洲h在线观看| 成人激情小说网站| 日韩免费视频一区二区| 亚洲综合色自拍一区| 高清国产午夜精品久久久久久| 欧美一区二区三区四区在线观看| 亚洲免费观看高清| 国产精品一区二区你懂的| 欧美老年两性高潮| 亚洲视频免费在线观看| 国产美女在线精品| 日韩一区二区三区精品视频| 亚洲色图在线看| 经典三级视频一区| 欧美日韩国产123区| 17c精品麻豆一区二区免费| 精品一区二区在线看| 欧美精品一卡两卡| 亚洲精品免费电影| 成人激情开心网| 久久免费看少妇高潮| 免费在线观看日韩欧美| 欧美日韩激情一区二区三区| 亚洲丝袜美腿综合| 成人午夜视频福利| 国产欧美日韩在线看| 在线免费不卡电影| 日本在线不卡视频一二三区| 日本午夜一区二区| 欧美三级一区二区| 一区二区在线观看不卡| av中文一区二区三区| 久久精品这里都是精品| 国产一区二区0| 午夜久久久影院| 国产成人精品免费| 日韩精品一区二区在线| 日韩av中文字幕一区二区| 欧美亚洲免费在线一区| 亚洲综合丁香婷婷六月香| 一本色道a无线码一区v| 亚洲欧美激情插| 91国模大尺度私拍在线视频| 亚洲永久免费视频| 欧美日韩在线播放一区| 亚洲一二三四在线观看| 91久久精品网| 亚洲成人资源在线| 91精品国产91综合久久蜜臀| 日本不卡高清视频| 日韩午夜在线影院| 九九九久久久精品| 久久九九久久九九| 国产v综合v亚洲欧| 国产精品三级视频| 久久99久久99| 亚洲一区二区三区爽爽爽爽爽| 欧美成人精精品一区二区频| 国产精品香蕉一区二区三区| 日韩欧美国产电影| 捆绑紧缚一区二区三区视频| 精品理论电影在线观看| 国产一区二区三区在线观看免费视频 | 欧美午夜精品免费| 日韩高清电影一区| 精品99一区二区| 国产成人精品三级| 亚洲视频免费看| 欧美日韩免费在线视频| 免费成人在线网站| 国产亚洲综合在线| 色婷婷久久综合| 午夜久久久久久久久久一区二区| 精品少妇一区二区三区视频免付费| 国产精品性做久久久久久| 亚洲特黄一级片| 欧美一区二区三区在线视频| 极品少妇xxxx偷拍精品少妇| 国产精品久久久久久久久快鸭| 欧美中文字幕一区| 蜜桃视频一区二区三区在线观看| 欧美中文字幕一二三区视频| 免费欧美在线视频| 欧美日韩你懂得| 亚洲免费av在线| 欧美色欧美亚洲另类二区| 免费精品视频最新在线| 久久久久99精品一区| 97精品电影院| 青椒成人免费视频| 国产精品网站一区| 欧美性高清videossexo| 国产一区二区视频在线| 亚洲精品免费在线观看| 日韩欧美国产午夜精品| 99久久伊人网影院| 日韩av不卡在线观看| 国产精品私房写真福利视频| 欧美欧美午夜aⅴ在线观看| 国产一区二区三区在线观看免费视频| 亚洲欧美经典视频| 日韩精品资源二区在线| 97久久精品人人爽人人爽蜜臀| 日本不卡一区二区| 成人免费一区二区三区视频| 日韩精品一区二区在线| 日本韩国欧美一区二区三区| 国产一区二区三区香蕉| 一区二区三区欧美亚洲| 久久久噜噜噜久久中文字幕色伊伊| 91久久久免费一区二区| 国产精品 日产精品 欧美精品| 肉丝袜脚交视频一区二区| 中文字幕一区二区三区四区| 日韩视频一区二区在线观看| 色哟哟国产精品| 国产伦精一区二区三区| 日韩精品成人一区二区在线| 亚洲视频在线观看三级| 久久理论电影网| 91精品国产综合久久国产大片| 色偷偷88欧美精品久久久| 国产精品中文字幕日韩精品| 日本不卡1234视频| 亚洲一区二区影院| 国产精品美女久久久久aⅴ国产馆| 日韩三级精品电影久久久| 在线免费不卡视频| 99精品热视频| 国产乱码精品一区二区三区忘忧草| 三级久久三级久久| 亚洲国产美国国产综合一区二区| 亚洲国产精品99久久久久久久久| 精品国产免费一区二区三区四区| 欧美日韩亚洲高清一区二区| av午夜精品一区二区三区| 国产精品一区二区久久不卡| 蜜臀99久久精品久久久久久软件| 亚洲综合在线观看视频| 最新久久zyz资源站| 久久精品夜色噜噜亚洲a∨| 日韩美女主播在线视频一区二区三区| 欧美日韩国产色站一区二区三区| 91网站在线观看视频| 成人免费视频国产在线观看| 国产成人免费在线视频| 国产一区二区中文字幕| 国产最新精品免费| 激情综合一区二区三区| 乱中年女人伦av一区二区| 蜜臀av国产精品久久久久| 麻豆精品一二三| 久久se精品一区二区| 免费成人在线影院| 美女网站在线免费欧美精品| 日本中文在线一区| 免费看日韩a级影片| 精品亚洲国内自在自线福利| 久久99国产精品久久99果冻传媒| 久久精品国产色蜜蜜麻豆| 久久精品国产成人一区二区三区 | 欧美色精品在线视频| 一道本成人在线| 在线免费一区三区| 欧美日韩一区在线观看| 9191久久久久久久久久久| 欧美肥胖老妇做爰| 日韩欧美美女一区二区三区| 日韩精品中文字幕在线不卡尤物| 亚洲精品一区二区三区精华液| 久久夜色精品国产欧美乱极品| 国产女人18水真多18精品一级做| 中文字幕在线观看一区| 亚洲精品视频免费看|