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

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

?? customcomboboxdemo.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.*;/* * CustomComboBoxDemo.java uses the following files: *   images/Bird.gif *   images/Cat.gif *   images/Dog.gif *   images/Rabbit.gif *   images/Pig.gif */public class CustomComboBoxDemo extends JPanel {    ImageIcon[] images;    String[] petStrings = {"Bird", "Cat", "Dog", "Rabbit", "Pig"};    /*     * Despite its use of EmptyBorder, this panel makes a fine content     * pane because the empty border just increases the panel's size     * and is "painted" on top of the panel's normal background.  In     * other words, the JPanel fills its entire background if it's     * opaque (which it is by default); adding a border doesn't change     * that.     */    public CustomComboBoxDemo() {        super(new BorderLayout());        //Load the pet images and create an array of indexes.        images = new ImageIcon[petStrings.length];        Integer[] intArray = new Integer[petStrings.length];        for (int i = 0; i < petStrings.length; i++) {            intArray[i] = new Integer(i);            images[i] = createImageIcon("images/" + petStrings[i] + ".gif");            if (images[i] != null) {                images[i].setDescription(petStrings[i]);            }        }        //Create the combo box.        JComboBox petList = new JComboBox(intArray);        ComboBoxRenderer renderer= new ComboBoxRenderer();        renderer.setPreferredSize(new Dimension(200, 130));        petList.setRenderer(renderer);        petList.setMaximumRowCount(3);        //Lay out the demo.        add(petList, BorderLayout.PAGE_START);        setBorder(BorderFactory.createEmptyBorder(20,20,20,20));    }    /** Returns an ImageIcon, or null if the path was invalid. */    protected static ImageIcon createImageIcon(String path) {        java.net.URL imgURL = CustomComboBoxDemo.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("CustomComboBoxDemo");        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        //Create and set up the content pane.        JComponent newContentPane = new CustomComboBoxDemo();        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();            }        });    }    class ComboBoxRenderer extends JLabel                           implements ListCellRenderer {        private Font uhOhFont;        public ComboBoxRenderer() {            setOpaque(true);            setHorizontalAlignment(CENTER);            setVerticalAlignment(CENTER);        }        /*         * This method finds the image and text corresponding         * to the selected value and returns the label, set up         * to display the text and image.         */        public Component getListCellRendererComponent(                                           JList list,                                           Object value,                                           int index,                                           boolean isSelected,                                           boolean cellHasFocus) {            //Get the selected index. (The index param isn't            //always valid, so just use the value.)            int selectedIndex = ((Integer)value).intValue();            if (isSelected) {                setBackground(list.getSelectionBackground());                setForeground(list.getSelectionForeground());            } else {                setBackground(list.getBackground());                setForeground(list.getForeground());            }            //Set the icon and text.  If icon was null, say so.            ImageIcon icon = images[selectedIndex];            String pet = petStrings[selectedIndex];            setIcon(icon);            if (icon != null) {                setText(pet);                setFont(list.getFont());            } else {                setUhOhText(pet + " (no image available)",                            list.getFont());            }            return this;        }        //Set the font and text when no image was found.        protected void setUhOhText(String uhOhText, Font normalFont) {            if (uhOhFont == null) { //lazily create this font                uhOhFont = normalFont.deriveFont(Font.ITALIC);            }            setFont(uhOhFont);            setText(uhOhText);        }    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产91综合久久蜜臀| 国产91精品一区二区麻豆网站| 精品日产卡一卡二卡麻豆| 成人福利在线看| 午夜影院久久久| 国产女人水真多18毛片18精品视频 | 亚洲国产精品久久不卡毛片 | 日韩精品一区二区在线| 色婷婷久久久亚洲一区二区三区| 免费成人小视频| 亚洲精品乱码久久久久| 中文字幕一区二| 国产午夜精品久久久久久免费视| 777久久久精品| 欧美日韩激情一区二区三区| 色嗨嗨av一区二区三区| 成+人+亚洲+综合天堂| 国产精品996| 欧美自拍丝袜亚洲| 日韩欧美一级特黄在线播放| 国产欧美在线观看一区| 一区二区在线免费| 日韩国产成人精品| 国产乱码精品一区二区三区五月婷| 蜜桃精品在线观看| 丁香五精品蜜臀久久久久99网站| 丁香婷婷综合色啪| 91福利国产成人精品照片| 欧美日韩国产大片| 欧美一区二区三区男人的天堂| 久久视频一区二区| 国产精品久久久久久久久晋中 | 夜夜嗨av一区二区三区中文字幕 | 欧洲精品在线观看| 欧美videos中文字幕| 亚洲国产精品精华液ab| 中文字幕在线不卡视频| 亚洲成a天堂v人片| 懂色一区二区三区免费观看| 99精品视频一区二区三区| 久久久亚洲综合| 免费精品视频在线| 一本一道久久a久久精品综合蜜臀| 欧美精品久久一区二区三区| 国产精品日韩精品欧美在线| 日韩福利电影在线| 色香蕉成人二区免费| 国产午夜亚洲精品午夜鲁丝片| 一区二区三区在线视频观看58| 蜜桃在线一区二区三区| 欧亚一区二区三区| 亚洲特黄一级片| 国产精品中文字幕欧美| 色婷婷久久久久swag精品| 欧美成人高清电影在线| 日本一区中文字幕| ww亚洲ww在线观看国产| 视频一区视频二区中文| 在线亚洲免费视频| 精品午夜久久福利影院| 日韩一区二区不卡| 天天综合网天天综合色| 一本到一区二区三区| 国产精品国产三级国产aⅴ中文| 国产麻豆视频一区| 亚洲国产精品成人综合色在线婷婷| 亚洲成人tv网| 制服丝袜在线91| 日本不卡123| 久久日韩粉嫩一区二区三区| 男女男精品网站| 日韩一区二区电影网| 国产精品一区二区视频| 中文字幕在线播放不卡一区| 色综合天天综合| 午夜久久福利影院| 精品国免费一区二区三区| 国产揄拍国内精品对白| 国产清纯白嫩初高生在线观看91| 国产91丝袜在线观看| 洋洋av久久久久久久一区| 日韩亚洲欧美在线| 国产精一区二区三区| 国产精品久久网站| 欧美性大战久久| 国产一区二区三区电影在线观看| 国产亚洲短视频| 91福利视频在线| 国产在线精品不卡| 国产精品久久久久久久久搜平片 | 日日骚欧美日韩| 日韩精品一区二区三区视频 | 91精品欧美福利在线观看| www.亚洲在线| 午夜精品久久久久久久99水蜜桃 | 岛国一区二区在线观看| 一区二区三区精品视频| 91精品国产色综合久久久蜜香臀| 国产在线日韩欧美| 午夜婷婷国产麻豆精品| 成人免费看视频| 亚洲精品成人在线| 中文字幕一区免费在线观看| 国产精品欧美极品| 最新中文字幕一区二区三区| 亚洲男人的天堂在线观看| 精品电影一区二区| 3751色影院一区二区三区| 欧美一a一片一级一片| 99视频在线观看一区三区| 国产精品正在播放| 狠狠网亚洲精品| 极品少妇一区二区三区精品视频| 亚洲综合视频网| 亚洲一区视频在线| 亚洲一区二区影院| 亚洲一区二区三区国产| 国产精品五月天| 国产精品视频线看| 一区二区三区中文在线观看| 午夜欧美大尺度福利影院在线看| 国产丝袜欧美中文另类| 国产偷国产偷亚洲高清人白洁| 久久综合av免费| 国产精品乱码一区二三区小蝌蚪| 久久精品男人天堂av| 中文字幕欧美国产| 国产精品丝袜91| 最新国产成人在线观看| 国产精品乱子久久久久| 日本一区二区免费在线观看视频| 国产亚洲人成网站| 中文字幕亚洲成人| 亚洲成人在线观看视频| 麻豆视频一区二区| 国产精品123| jizz一区二区| 欧美一级一区二区| 国产精品成人网| 麻豆久久一区二区| 91在线观看免费视频| 欧美一二三区在线观看| 伊人夜夜躁av伊人久久| 国产凹凸在线观看一区二区| 欧美一二三四区在线| 视频一区二区三区入口| 欧美午夜精品免费| 欧美一区二区三区四区视频| 久久精品视频一区二区| 亚洲丶国产丶欧美一区二区三区| 国产在线视频不卡二| 欧美精品自拍偷拍| 国产精品天美传媒沈樵| 免费人成黄页网站在线一区二区| 成人免费看片app下载| 亚洲精品一区二区三区99| 亚洲成人资源网| 色屁屁一区二区| 日韩美女视频一区二区| 国产成人综合亚洲91猫咪| 日韩一级免费一区| 婷婷国产v国产偷v亚洲高清| 一本大道av一区二区在线播放| 久久久激情视频| 国产在线麻豆精品观看| 日韩欧美一卡二卡| 日韩精品一二三四| 欧美日韩国产三级| 调教+趴+乳夹+国产+精品| 欧美亚洲国产一区在线观看网站 | 亚洲国产毛片aaaaa无费看| 99久久精品国产毛片| 中文字幕亚洲欧美在线不卡| 色综合久久88色综合天天免费| 亚洲精品国产无套在线观| 91麻豆.com| 性做久久久久久免费观看欧美| 欧美亚洲动漫另类| 五月婷婷久久丁香| 欧美日韩亚洲另类| 奇米777欧美一区二区| 日韩美女主播在线视频一区二区三区 | 精品欧美乱码久久久久久 | 日韩免费观看2025年上映的电影 | 日韩av一区二区在线影视| 宅男噜噜噜66一区二区66| 国产一区二区三区在线观看精品| 久久婷婷国产综合国色天香| 国产99久久久国产精品潘金| 国产精品动漫网站| 欧美日韩国产三级| 丁香天五香天堂综合| 亚洲线精品一区二区三区八戒| 欧美一区二区三区爱爱| 国产河南妇女毛片精品久久久| 中文字幕一区二区日韩精品绯色| 91黄色免费网站| 国产成人精品亚洲777人妖 | 欧美裸体一区二区三区| 国产乱码字幕精品高清av|