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

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

?? boxalignmentdemo.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 layout;/* * BoxAlignmentDemo.java requires the following files: *   images/middle.gif *   images/geek-cght.gif * * This demo shows how to specify alignments when you're using * a BoxLayout for components with maximum sizes and different * default alignments. */import javax.swing.*;import javax.swing.border.*;import java.awt.*;public class BoxAlignmentDemo extends JPanel {    public BoxAlignmentDemo() {        super(new BorderLayout());        JTabbedPane tabbedPane = new JTabbedPane();        JPanel buttonRow = new JPanel();        //Use default FlowLayout.        buttonRow.add(createButtonRow(false));        buttonRow.add(createButtonRow(true));        tabbedPane.addTab("Altering alignments", buttonRow);        JPanel labelAndComponent = new JPanel();        //Use default FlowLayout.        labelAndComponent.add(createLabelAndComponent(false));        labelAndComponent.add(createLabelAndComponent(true));        tabbedPane.addTab("X alignment mismatch", labelAndComponent);        JPanel buttonAndComponent = new JPanel();        //Use default FlowLayout.        buttonAndComponent.add(createYAlignmentExample(false));        buttonAndComponent.add(createYAlignmentExample(true));        tabbedPane.addTab("Y alignment mismatch", buttonAndComponent);        //Add tabbedPane to this panel.        add(tabbedPane, BorderLayout.CENTER);    }    protected JPanel createButtonRow(boolean changeAlignment) {        JButton button1 = new JButton("A JButton",                                      createImageIcon("images/middle.gif"));        button1.setVerticalTextPosition(AbstractButton.BOTTOM);        button1.setHorizontalTextPosition(AbstractButton.CENTER);        JButton button2 = new JButton("Another JButton",                                      createImageIcon("images/geek-cght.gif"));        button2.setVerticalTextPosition(AbstractButton.BOTTOM);        button2.setHorizontalTextPosition(AbstractButton.CENTER);        String title;        if (changeAlignment) {            title = "Desired";            button1.setAlignmentY(BOTTOM_ALIGNMENT);            button2.setAlignmentY(BOTTOM_ALIGNMENT);        } else {            title = "Default";        }        JPanel pane = new JPanel();        pane.setBorder(BorderFactory.createTitledBorder(title));        pane.setLayout(new BoxLayout(pane, BoxLayout.X_AXIS));        pane.add(button1);        pane.add(button2);        return pane;    }    protected JPanel createLabelAndComponent(boolean doItRight) {        JPanel pane = new JPanel();        JComponent component = new JPanel();        Dimension size = new Dimension(150,100);        component.setMaximumSize(size);        component.setPreferredSize(size);        component.setMinimumSize(size);        TitledBorder border = new TitledBorder(                                  new LineBorder(Color.black),                                  "A JPanel",                                  TitledBorder.CENTER,                                  TitledBorder.BELOW_TOP);        border.setTitleColor(Color.black);        component.setBorder(border);        JLabel label = new JLabel("This is a JLabel");        String title;        if (doItRight) {            title = "Matched";            label.setAlignmentX(CENTER_ALIGNMENT);        } else {            title = "Mismatched";        }        pane.setBorder(BorderFactory.createTitledBorder(title));        pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));        pane.add(label);        pane.add(component);        return pane;    }    protected JPanel createYAlignmentExample(boolean doItRight) {        JPanel pane = new JPanel();        String title;        JComponent component1 = new JPanel();        Dimension size = new Dimension(100, 50);        component1.setMaximumSize(size);        component1.setPreferredSize(size);        component1.setMinimumSize(size);        TitledBorder border = new TitledBorder(                                  new LineBorder(Color.black),                                  "A JPanel",                                  TitledBorder.CENTER,                                  TitledBorder.BELOW_TOP);        border.setTitleColor(Color.black);        component1.setBorder(border);        JComponent component2 = new JPanel();        size = new Dimension(100, 50);        component2.setMaximumSize(size);        component2.setPreferredSize(size);        component2.setMinimumSize(size);        border = new TitledBorder(new LineBorder(Color.black),                                  "A JPanel",                                  TitledBorder.CENTER,                                  TitledBorder.BELOW_TOP);        border.setTitleColor(Color.black);        component2.setBorder(border);        if (doItRight) {            title = "Matched";        } else {            component1.setAlignmentY(TOP_ALIGNMENT);            title = "Mismatched";        }        pane.setBorder(BorderFactory.createTitledBorder(title));        pane.setLayout(new BoxLayout(pane, BoxLayout.X_AXIS));        pane.add(component1);        pane.add(component2);        return pane;    }    /** Returns an ImageIcon, or null if the path was invalid. */    protected static ImageIcon createImageIcon(String path) {        java.net.URL imgURL = BoxAlignmentDemo.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("BoxAlignmentDemo");        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        //Create and set up the content pane.        BoxAlignmentDemo newContentPane = new BoxAlignmentDemo();        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一区二区三区免费野_久草精品视频
久久精品免视看| 在线观看三级视频欧美| 欧美r级电影在线观看| 婷婷成人激情在线网| 欧美日韩国产免费一区二区| 日本伊人精品一区二区三区观看方式| 欧美最猛黑人xxxxx猛交| 天堂av在线一区| 日韩欧美国产不卡| 国产乱人伦偷精品视频不卡 | 一区二区三区成人在线视频| 91久久线看在观草草青青| 亚洲第一会所有码转帖| 日韩三级在线免费观看| 国产精品一区2区| 亚洲色图视频网站| 91精品欧美久久久久久动漫| 国产精品一区二区在线看| 专区另类欧美日韩| 欧美一区二区三区在线观看视频 | 久久综合999| 日本国产一区二区| 日本不卡一区二区| 国产精品少妇自拍| 欧美福利一区二区| 国产99久久久久久免费看农村| 亚洲精品成人悠悠色影视| 欧美一区二区三区四区久久 | 不卡视频在线看| 性感美女久久精品| 国产欧美一区二区精品性色| 一本色道久久综合亚洲91| 麻豆久久久久久久| 亚洲精品日日夜夜| 久久久久亚洲蜜桃| 欧美午夜精品久久久| 国产乱码精品一区二区三区忘忧草 | 欧美日韩国产首页| 国产91精品一区二区麻豆网站| 亚洲午夜羞羞片| 国产欧美精品区一区二区三区| 欧美午夜精品免费| 99re热这里只有精品免费视频 | 精品久久久网站| 91久久国产综合久久| 国产乱码精品一品二品| 五月天精品一区二区三区| 亚洲天堂中文字幕| 久久这里只有精品6| 这里只有精品视频在线观看| 91蜜桃传媒精品久久久一区二区| 精品午夜一区二区三区在线观看| 亚洲精品福利视频网站| 国产精品天天看| 精品第一国产综合精品aⅴ| 欧美三级韩国三级日本一级| 成人福利在线看| 国产在线一区二区| 免费成人av资源网| 亚洲国产视频一区二区| 亚洲欧洲三级电影| 欧美国产精品一区二区三区| 日韩女优视频免费观看| 欧美日本一区二区在线观看| 91麻豆视频网站| 成人av免费在线观看| 国产高清在线精品| 国产尤物一区二区在线| 久久综合综合久久综合| 日本麻豆一区二区三区视频| 偷拍自拍另类欧美| 亚洲国产精品一区二区www| 中文字幕五月欧美| 国产精品久久二区二区| 国产精品久久99| 国产精品短视频| 亚洲欧洲日产国码二区| 国产亲近乱来精品视频| 欧美国产一区在线| 国产精品久久久久天堂| 国产精品亲子乱子伦xxxx裸| 国产精品对白交换视频| 亚洲区小说区图片区qvod| 亚洲免费观看高清完整| 一区二区三区在线观看网站| 一区二区三区四区精品在线视频 | 豆国产96在线|亚洲| 成人午夜视频在线| caoporm超碰国产精品| 91免费看片在线观看| 一本大道久久a久久综合| 欧美自拍偷拍一区| 欧美一区二区私人影院日本| 欧美www视频| 国产亚洲精品资源在线26u| 国产精品私房写真福利视频| 一区视频在线播放| 午夜精品免费在线| 伦理电影国产精品| 国产成人av电影| 色狠狠av一区二区三区| 欧美男人的天堂一二区| 日韩欧美一区中文| 欧美国产1区2区| 亚洲精品国产无天堂网2021| 日韩国产欧美视频| 国产精品一区二区久激情瑜伽| av午夜精品一区二区三区| 欧美美女直播网站| 精品久久一二三区| 亚洲男人的天堂在线aⅴ视频| 肉色丝袜一区二区| 国产黄色精品视频| 欧美视频中文字幕| 久久免费视频一区| 亚洲一区二区三区小说| 精品一区二区免费视频| 99精品欧美一区| 日韩欧美国产综合在线一区二区三区 | 亚洲图片自拍偷拍| 国产黄色精品网站| 欧美嫩在线观看| 中文字幕av一区二区三区高| 午夜婷婷国产麻豆精品| 国产91精品一区二区麻豆网站| 欧美日韩视频在线一区二区| 国产情人综合久久777777| 亚洲综合免费观看高清完整版 | 1000部国产精品成人观看| 日韩精品1区2区3区| 成人黄色小视频| 欧美一区二区三区免费视频| 亚洲天堂网中文字| 国产福利精品导航| 正在播放一区二区| 亚洲综合色区另类av| 粉嫩在线一区二区三区视频| 欧美一区二区三区在| 一区二区三区色| 国产盗摄精品一区二区三区在线| 欧美日韩一区二区三区不卡| 国产精品久久久久影院亚瑟| 韩国午夜理伦三级不卡影院| 欧美日韩国产经典色站一区二区三区| 欧美国产成人在线| 国产麻豆成人传媒免费观看| 884aa四虎影成人精品一区| 亚洲男人的天堂在线aⅴ视频 | 91亚洲午夜精品久久久久久| 久久影院视频免费| 美日韩黄色大片| 欧美精品日韩一本| 亚洲一区二区三区精品在线| 福利电影一区二区| 久久久久久久综合色一本| 麻豆久久久久久| 日韩欧美国产午夜精品| 视频在线观看91| 欧美日韩大陆一区二区| 一区二区成人在线| 91久久精品国产91性色tv | 亚洲一区二区在线播放相泽| 日本久久电影网| 亚洲欧美aⅴ...| 91麻豆高清视频| 亚洲人成网站在线| 色综合久久中文综合久久97 | 日韩免费在线观看| 蜜桃av一区二区三区电影| 日韩片之四级片| 麻豆成人综合网| 精品免费国产二区三区| 精品一区二区在线视频| 欧美精品一区二区不卡| 国产高清不卡二三区| 中文字幕精品三区| 成人av网站免费观看| 亚洲欧美一区二区在线观看| 91美女片黄在线| 亚洲一区免费视频| 欧美一区二区三区四区五区| 久久丁香综合五月国产三级网站| 精品国产一区二区三区忘忧草 | 国产一区在线不卡| 国产调教视频一区| 成人av在线播放网址| 亚洲免费在线观看| 欧美电影在线免费观看| 久久99精品国产91久久来源| 久久久噜噜噜久久中文字幕色伊伊| 成人午夜在线播放| 亚洲伊人伊色伊影伊综合网| 欧美日韩aaaaa| 国产中文字幕精品| 亚洲美女视频在线| 日韩免费性生活视频播放| 粉嫩aⅴ一区二区三区四区五区| 亚洲免费av观看| 日韩欧美一区二区不卡| 成人精品免费看|