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

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

?? borderdemo.java

?? java tutotrials or beginners
?? 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.BorderFactory; import javax.swing.border.Border;import javax.swing.border.TitledBorder;import javax.swing.border.EtchedBorder;import javax.swing.ImageIcon;import javax.swing.JTabbedPane;import javax.swing.JLabel;import javax.swing.JPanel; import javax.swing.JFrame;import javax.swing.Box;import javax.swing.BoxLayout;/* * BorderDemo.java requires the following file: *    images/wavy.gif */public class BorderDemo extends JPanel {    public BorderDemo() {        super(new GridLayout(1,0));        //Keep references to the next few borders,        //for use in titles and compound borders.        Border blackline, raisedetched, loweredetched,               raisedbevel, loweredbevel, empty;        //A border that puts 10 extra pixels at the sides and        //bottom of each pane.        Border paneEdge = BorderFactory.createEmptyBorder(0,10,10,10);        blackline = BorderFactory.createLineBorder(Color.black);        raisedetched = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);        loweredetched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);        raisedbevel = BorderFactory.createRaisedBevelBorder();        loweredbevel = BorderFactory.createLoweredBevelBorder();        empty = BorderFactory.createEmptyBorder();        //First pane: simple borders        JPanel simpleBorders = new JPanel();        simpleBorders.setBorder(paneEdge);        simpleBorders.setLayout(new BoxLayout(simpleBorders,                                              BoxLayout.Y_AXIS));        addCompForBorder(blackline, "line border",                         simpleBorders);        addCompForBorder(raisedetched, "raised etched border",                         simpleBorders);        addCompForBorder(loweredetched, "lowered etched border",                         simpleBorders);        addCompForBorder(raisedbevel, "raised bevel border",                         simpleBorders);        addCompForBorder(loweredbevel, "lowered bevel border",                         simpleBorders);        addCompForBorder(empty, "empty border",                         simpleBorders);        //Second pane: matte borders        JPanel matteBorders = new JPanel();        matteBorders.setBorder(paneEdge);        matteBorders.setLayout(new BoxLayout(matteBorders,                                              BoxLayout.Y_AXIS));        ImageIcon icon = createImageIcon("images/wavy.gif",                                         "wavy-line border icon"); //20x22        Border border = BorderFactory.createMatteBorder(-1, -1, -1, -1, icon);        if (icon != null) {            addCompForBorder(border,                             "matte border (-1,-1,-1,-1,icon)",                             matteBorders);        } else {            addCompForBorder(border,                             "matte border (-1,-1,-1,-1,<null-icon>)",                             matteBorders);        }        border = BorderFactory.createMatteBorder(1, 5, 1, 1, Color.red);        addCompForBorder(border,                         "matte border (1,5,1,1,Color.red)",                         matteBorders);        border = BorderFactory.createMatteBorder(0, 20, 0, 0, icon);        if (icon != null) {            addCompForBorder(border,                             "matte border (0,20,0,0,icon)",                             matteBorders);        } else {            addCompForBorder(border,                             "matte border (0,20,0,0,<null-icon>)",                             matteBorders);        }        //Third pane: titled borders        JPanel titledBorders = new JPanel();        titledBorders.setBorder(paneEdge);        titledBorders.setLayout(new BoxLayout(titledBorders,                                              BoxLayout.Y_AXIS));        TitledBorder titled;        titled = BorderFactory.createTitledBorder("title");        addCompForBorder(titled,                         "default titled border"                         + " (default just., default pos.)",                         titledBorders);        titled = BorderFactory.createTitledBorder(                              blackline, "title");        addCompForTitledBorder(titled,                               "titled line border"                                   + " (centered, default pos.)",                               TitledBorder.CENTER,                               TitledBorder.DEFAULT_POSITION,                               titledBorders);        titled = BorderFactory.createTitledBorder(loweredetched, "title");        addCompForTitledBorder(titled,                               "titled lowered etched border"                                   + " (right just., default pos.)",                               TitledBorder.RIGHT,                               TitledBorder.DEFAULT_POSITION,                               titledBorders);        titled = BorderFactory.createTitledBorder(                        loweredbevel, "title");        addCompForTitledBorder(titled,                               "titled lowered bevel border"                                   + " (default just., above top)",                               TitledBorder.DEFAULT_JUSTIFICATION,                               TitledBorder.ABOVE_TOP,                               titledBorders);        titled = BorderFactory.createTitledBorder(                        empty, "title");        addCompForTitledBorder(titled, "titled empty border"                               + " (default just., bottom)",                               TitledBorder.DEFAULT_JUSTIFICATION,                               TitledBorder.BOTTOM,                               titledBorders);        //Fourth pane: compound borders        JPanel compoundBorders = new JPanel();        compoundBorders.setBorder(paneEdge);        compoundBorders.setLayout(new BoxLayout(compoundBorders,                                              BoxLayout.Y_AXIS));        Border redline = BorderFactory.createLineBorder(Color.red);        Border compound;        compound = BorderFactory.createCompoundBorder(                                  raisedbevel, loweredbevel);        addCompForBorder(compound, "compound border (two bevels)",                         compoundBorders);        compound = BorderFactory.createCompoundBorder(                                  redline, compound);        addCompForBorder(compound, "compound border (add a red outline)",                         compoundBorders);        titled = BorderFactory.createTitledBorder(                                  compound, "title",                                  TitledBorder.CENTER,                                  TitledBorder.BELOW_BOTTOM);        addCompForBorder(titled,                          "titled compound border"                         + " (centered, below bottom)",                         compoundBorders);        JTabbedPane tabbedPane = new JTabbedPane();        tabbedPane.addTab("Simple", null, simpleBorders, null);        tabbedPane.addTab("Matte", null, matteBorders, null);        tabbedPane.addTab("Titled", null, titledBorders, null);        tabbedPane.addTab("Compound", null, compoundBorders, null);        tabbedPane.setSelectedIndex(0);        String toolTip = new String("<html>Blue Wavy Line border art crew:<br>&nbsp;&nbsp;&nbsp;Bill Pauley<br>&nbsp;&nbsp;&nbsp;Cris St. Aubyn<br>&nbsp;&nbsp;&nbsp;Ben Wronsky<br>&nbsp;&nbsp;&nbsp;Nathan Walrath<br>&nbsp;&nbsp;&nbsp;Tommy Adams, special consultant</html>");        tabbedPane.setToolTipTextAt(1, toolTip);        add(tabbedPane);    }    void addCompForTitledBorder(TitledBorder border,                                String description,                                int justification,                                int position,                                Container container) {        border.setTitleJustification(justification);        border.setTitlePosition(position);        addCompForBorder(border, description,                         container);    }    void addCompForBorder(Border border,                          String description,                          Container container) {        JPanel comp = new JPanel(new GridLayout(1, 1), false);        JLabel label = new JLabel(description, JLabel.CENTER);        comp.add(label);        comp.setBorder(border);        container.add(Box.createRigidArea(new Dimension(0, 10)));        container.add(comp);    }    /** Returns an ImageIcon, or null if the path was invalid. */    protected static ImageIcon createImageIcon(String path,                                               String description) {        java.net.URL imgURL = BorderDemo.class.getResource(path);        if (imgURL != null) {            return new ImageIcon(imgURL, description);        } 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("BorderDemo");        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        //Create and set up the content pane.        BorderDemo newContentPane = new BorderDemo();        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一区二区三区免费野_久草精品视频
粉嫩绯色av一区二区在线观看| ●精品国产综合乱码久久久久| 亚洲午夜电影在线观看| 91在线观看视频| 亚洲私人黄色宅男| 91免费看`日韩一区二区| 亚洲精品欧美二区三区中文字幕| 在线一区二区视频| 五月激情六月综合| 日韩欧美视频一区| 成人免费看视频| 亚洲欧美色一区| 欧美精品一级二级三级| 日韩电影免费一区| 久久婷婷色综合| 波多野洁衣一区| 亚洲成人综合网站| 久久久久久日产精品| av电影在线观看完整版一区二区| 一区二区三区高清不卡| 日韩午夜精品电影| 国产91精品一区二区麻豆网站 | a美女胸又www黄视频久久| 亚洲三级免费观看| 欧美精品在线一区二区三区| 国产精品综合网| 亚洲一区中文在线| 日韩精品资源二区在线| 92精品国产成人观看免费| 亚洲v精品v日韩v欧美v专区 | 欧美艳星brazzers| 久久精品国产99国产| 国产精品久久久久婷婷| 欧美乱妇一区二区三区不卡视频| 国产福利一区二区三区| 亚洲高清免费一级二级三级| 欧美国产视频在线| 538prom精品视频线放| a在线播放不卡| 蜜桃av一区二区| 亚洲欧美视频在线观看视频| www激情久久| 欧美女孩性生活视频| 99国产精品久久久久久久久久| 日本不卡高清视频| 亚洲一区二区精品3399| 国产片一区二区三区| 欧美二区在线观看| 色综合久久综合网| 国产成人免费视频网站| 日韩**一区毛片| 亚洲免费观看在线观看| 亚洲国产精品国自产拍av| 日韩一区二区三区视频在线| 在线精品视频免费播放| 懂色av中文字幕一区二区三区 | 欧美三级视频在线观看| 成人激情午夜影院| 麻豆国产欧美日韩综合精品二区| 亚洲一区免费观看| 亚洲欧美激情小说另类| 国产亚洲一区二区三区| 久久久噜噜噜久久人人看| 日韩一区二区三区av| 欧美日韩精品一区二区天天拍小说| 97久久精品人人做人人爽50路| 国产乱码字幕精品高清av| 久久国产精品99久久久久久老狼| 午夜av一区二区| 亚洲不卡av一区二区三区| 亚洲午夜精品一区二区三区他趣| 亚洲蜜臀av乱码久久精品| 国产精品理伦片| 中文字幕免费在线观看视频一区| 国产无一区二区| 久久精品视频免费观看| 久久久久久日产精品| 久久先锋影音av鲁色资源网| 2020国产精品久久精品美国| 日韩精品中午字幕| 久久日韩精品一区二区五区| 久久综合五月天婷婷伊人| 精品国产污网站| 久久综合久久鬼色中文字| 久久精品亚洲乱码伦伦中文| 欧美激情一区二区三区在线| 中文字幕一区二区三区四区| 国产精品美女久久久久久 | 色视频欧美一区二区三区| 91亚洲永久精品| 欧美视频自拍偷拍| 欧美精品久久99久久在免费线 | 日韩一区二区在线免费观看| 日韩精品最新网址| 国产欧美一区二区在线| 国产精品情趣视频| 亚洲精品中文字幕乱码三区| 亚洲制服丝袜av| 蜜臀a∨国产成人精品| 国产乱妇无码大片在线观看| 成人国产免费视频| 在线免费观看日本欧美| 欧美精品一卡两卡| 久久亚洲捆绑美女| 亚洲免费在线看| 日韩精彩视频在线观看| 紧缚捆绑精品一区二区| 91影院在线免费观看| 欧美日本不卡视频| 久久综合狠狠综合久久激情| 国产精品国产三级国产普通话蜜臀 | 欧美在线视频日韩| 97se亚洲国产综合自在线不卡| 在线一区二区视频| 精品国产一区二区三区忘忧草| 国产亚洲一区二区三区四区| 一区二区三区日韩欧美精品 | 青椒成人免费视频| 国产精品一二三四区| 色综合天天综合色综合av| 欧美老年两性高潮| 国产欧美日本一区二区三区| 亚洲国产乱码最新视频| 国产精品主播直播| 欧美日韩视频一区二区| 久久久99免费| 亚洲18影院在线观看| 风间由美一区二区三区在线观看| 欧美优质美女网站| 中文字幕 久热精品 视频在线| 亚洲一区二区三区美女| 成人丝袜高跟foot| 日韩女同互慰一区二区| 亚洲精品欧美综合四区| 国产白丝网站精品污在线入口| 欧美日韩高清一区| 中文字幕日本乱码精品影院| 成人综合婷婷国产精品久久 | 国产伦精品一区二区三区视频青涩 | 懂色av一区二区三区蜜臀| 日韩一区二区三区免费看| 1024成人网| 国产精品亚洲人在线观看| 欧美精品久久99| 亚洲综合成人在线| av一本久道久久综合久久鬼色| 日韩欧美在线一区二区三区| 亚洲一卡二卡三卡四卡无卡久久| 高清成人免费视频| 欧美白人最猛性xxxxx69交| 亚洲第一综合色| 一本一本久久a久久精品综合麻豆| 日本一区免费视频| 国产精品一区二区91| 日韩欧美国产一区二区在线播放 | 26uuu欧美| 日本中文字幕不卡| 欧美视频日韩视频在线观看| 中文字幕色av一区二区三区| 岛国精品在线播放| 国产三区在线成人av| 国产一区二区美女诱惑| 精品国产乱码久久久久久老虎| 三级欧美在线一区| 欧美私模裸体表演在线观看| 亚洲成人av一区二区三区| 色狠狠一区二区| 亚洲精品国产精华液| 一本到三区不卡视频| 亚洲久草在线视频| 99精品视频在线播放观看| 国产精品国产精品国产专区不片 | 精品无人区卡一卡二卡三乱码免费卡| 51久久夜色精品国产麻豆| 全国精品久久少妇| 日韩欧美另类在线| 国产一区二区免费看| 欧美国产欧美综合| 波多野结衣亚洲| 亚洲综合在线免费观看| 欧美午夜不卡视频| 日本成人在线看| 精品少妇一区二区| 国产99一区视频免费| 国产精品乱码一区二三区小蝌蚪| 波多野结衣视频一区| 亚洲愉拍自拍另类高清精品| 欧美午夜理伦三级在线观看| 丝袜脚交一区二区| 国产亚洲精久久久久久| av中文字幕一区| 亚洲图片欧美一区| 日韩欧美国产麻豆| 日韩黄色小视频| 成人av综合在线| 亚洲免费观看高清完整| 欧美精品xxxxbbbb| 国产高清在线精品| 一区二区三区丝袜| 精品99999|