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

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

?? metalrootpaneui.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* * @(#)MetalRootPaneUI.java	1.20 04/04/27 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package javax.swing.plaf.metal;import java.awt.event.*;import java.beans.PropertyChangeEvent;import java.beans.PropertyChangeListener;import javax.swing.*;import javax.swing.border.*;import javax.swing.event.*;import javax.swing.plaf.*;import javax.swing.plaf.basic.*;import java.awt.*;import java.io.*;import java.security.*;/** * Provides the metal look and feel implementation of <code>RootPaneUI</code>. * <p> * <code>MetalRootPaneUI</code> provides support for the * <code>windowDecorationStyle</code> property of <code>JRootPane</code>. * <code>MetalRootPaneUI</code> does this by way of installing a custom * <code>LayoutManager</code>, a private <code>Component</code> to render * the appropriate widgets, and a private <code>Border</code>. The * <code>LayoutManager</code> is always installed, regardless of the value of * the <code>windowDecorationStyle</code> property, but the * <code>Border</code> and <code>Component</code> are only installed/added if * the <code>windowDecorationStyle</code> is other than * <code>JRootPane.NONE</code>. * <p> * <strong>Warning:</strong> * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing.  As of 1.4, support for long term storage * of all JavaBeans<sup><font size="-2">TM</font></sup> * has been added to the <code>java.beans</code> package. * Please see {@link java.beans.XMLEncoder}. * * @version 1.20 04/27/04 * @author Terry Kellerman * @since 1.4 */public class MetalRootPaneUI extends BasicRootPaneUI {    /**     * Keys to lookup borders in defaults table.     */    private static final String[] borderKeys = new String[] {        null, "RootPane.frameBorder", "RootPane.plainDialogBorder",        "RootPane.informationDialogBorder",        "RootPane.errorDialogBorder", "RootPane.colorChooserDialogBorder",        "RootPane.fileChooserDialogBorder", "RootPane.questionDialogBorder",        "RootPane.warningDialogBorder"    };    /**     * The amount of space (in pixels) that the cursor is changed on.     */    private static final int CORNER_DRAG_WIDTH = 16;    /**     * Region from edges that dragging is active from.     */    private static final int BORDER_DRAG_THICKNESS = 5;    /**     * Window the <code>JRootPane</code> is in.     */    private Window window;    /**     * <code>JComponent</code> providing window decorations. This will be     * null if not providing window decorations.     */    private JComponent titlePane;    /**     * <code>MouseInputListener</code> that is added to the parent     * <code>Window</code> the <code>JRootPane</code> is contained in.     */    private MouseInputListener mouseInputListener;    /**     * The <code>LayoutManager</code> that is set on the     * <code>JRootPane</code>.     */    private LayoutManager layoutManager;    /**     * <code>LayoutManager</code> of the <code>JRootPane</code> before we     * replaced it.     */    private LayoutManager savedOldLayout;    /**     * <code>JRootPane</code> providing the look and feel for.     */    private JRootPane root;    /**     * <code>Cursor</code> used to track the cursor set by the user.       * This is initially <code>Cursor.DEFAULT_CURSOR</code>.     */    private Cursor lastCursor =            Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);    /**     * Creates a UI for a <code>JRootPane</code>.     *     * @param c the JRootPane the RootPaneUI will be created for     * @return the RootPaneUI implementation for the passed in JRootPane     */    public static ComponentUI createUI(JComponent c) {        return new MetalRootPaneUI();    }    /**     * Invokes supers implementation of <code>installUI</code> to install     * the necessary state onto the passed in <code>JRootPane</code>     * to render the metal look and feel implementation of     * <code>RootPaneUI</code>. If     * the <code>windowDecorationStyle</code> property of the     * <code>JRootPane</code> is other than <code>JRootPane.NONE</code>,     * this will add a custom <code>Component</code> to render the widgets to     * <code>JRootPane</code>, as well as installing a custom     * <code>Border</code> and <code>LayoutManager</code> on the     * <code>JRootPane</code>.     *     * @param c the JRootPane to install state onto     */    public void installUI(JComponent c) {         super.installUI(c);        root = (JRootPane)c;        int style = root.getWindowDecorationStyle();        if (style != JRootPane.NONE) {            installClientDecorations(root);        }    }    /**     * Invokes supers implementation to uninstall any of its state. This will     * also reset the <code>LayoutManager</code> of the <code>JRootPane</code>.     * If a <code>Component</code> has been added to the <code>JRootPane</code>     * to render the window decoration style, this method will remove it.     * Similarly, this will revert the Border and LayoutManager of the     * <code>JRootPane</code> to what it was before <code>installUI</code>     * was invoked.     *     * @param c the JRootPane to uninstall state from     */    public void uninstallUI(JComponent c) {        super.uninstallUI(c);        uninstallClientDecorations(root);        layoutManager = null;        mouseInputListener = null;        root = null;    }    /**     * Installs the appropriate <code>Border</code> onto the     * <code>JRootPane</code>.     */    void installBorder(JRootPane root) {        int style = root.getWindowDecorationStyle();        if (style == JRootPane.NONE) {            LookAndFeel.uninstallBorder(root);        }        else {            LookAndFeel.installBorder(root, borderKeys[style]);        }    }    /**     * Removes any border that may have been installed.     */    private void uninstallBorder(JRootPane root) {        LookAndFeel.uninstallBorder(root);    }    /**     * Installs the necessary Listeners on the parent <code>Window</code>,     * if there is one.     * <p>     * This takes the parent so that cleanup can be done from     * <code>removeNotify</code>, at which point the parent hasn't been     * reset yet.     *     * @param parent The parent of the JRootPane     */    private void installWindowListeners(JRootPane root, Component parent) {        if (parent instanceof Window) {            window = (Window)parent;        }        else {            window = SwingUtilities.getWindowAncestor(parent);        }        if (window != null) {            if (mouseInputListener == null) {                mouseInputListener = createWindowMouseInputListener(root);            }            window.addMouseListener(mouseInputListener);            window.addMouseMotionListener(mouseInputListener);        }    }    /**     * Uninstalls the necessary Listeners on the <code>Window</code> the     * Listeners were last installed on.     */    private void uninstallWindowListeners(JRootPane root) {        if (window != null) {            window.removeMouseListener(mouseInputListener);            window.removeMouseMotionListener(mouseInputListener);        }    }    /**     * Installs the appropriate LayoutManager on the <code>JRootPane</code>     * to render the window decorations.     */    private void installLayout(JRootPane root) {        if (layoutManager == null) {            layoutManager = createLayoutManager();        }        savedOldLayout = root.getLayout();        root.setLayout(layoutManager);    }    /**     * Uninstalls the previously installed <code>LayoutManager</code>.     */    private void uninstallLayout(JRootPane root) {        if (savedOldLayout != null) {            root.setLayout(savedOldLayout);            savedOldLayout = null;        }    }    /**     * Installs the necessary state onto the JRootPane to render client     * decorations. This is ONLY invoked if the <code>JRootPane</code>     * has a decoration style other than <code>JRootPane.NONE</code>.     */    private void installClientDecorations(JRootPane root) {        installBorder(root);        JComponent titlePane = createTitlePane(root);        setTitlePane(root, titlePane);        installWindowListeners(root, root.getParent());        installLayout(root);        if (window != null) {            root.revalidate();            root.repaint();        }    }    /**     * Uninstalls any state that <code>installClientDecorations</code> has     * installed.     * <p>     * NOTE: This may be called if you haven't installed client decorations     * yet (ie before <code>installClientDecorations</code> has been invoked).     */    private void uninstallClientDecorations(JRootPane root) {        uninstallBorder(root);        uninstallWindowListeners(root);        setTitlePane(root, null);        uninstallLayout(root);	// We have to revalidate/repaint root if the style is JRootPane.NONE	// only. When we needs to call revalidate/repaint with other styles	// the installClientDecorations is always called after this method	// imediatly and it will cause the revalidate/repaint at the proper	// time.        int style = root.getWindowDecorationStyle();        if (style == JRootPane.NONE) {	    root.repaint();	    root.revalidate();	}        // Reset the cursor, as we may have changed it to a resize cursor        if (window != null) {            window.setCursor(Cursor.getPredefinedCursor                             (Cursor.DEFAULT_CURSOR));        }        window = null;    }    /**     * Returns the <code>JComponent</code> to render the window decoration     * style.     */    private JComponent createTitlePane(JRootPane root) {        return new MetalTitlePane(root, this);    }    /**     * Returns a <code>MouseListener</code> that will be added to the     * <code>Window</code> containing the <code>JRootPane</code>.     */    private MouseInputListener createWindowMouseInputListener(JRootPane root) {        return new MouseInputHandler();    }    /**     * Returns a <code>LayoutManager</code> that will be set on the     * <code>JRootPane</code>.     */    private LayoutManager createLayoutManager() {        return new MetalRootLayout();    }    /**      * Sets the window title pane -- the JComponent used to provide a plaf a     * way to override the native operating system's window title pane with     * one whose look and feel are controlled by the plaf.  The plaf creates      * and sets this value; the default is null, implying a native operating     * system window title pane.     *       * @param content the <code>JComponent</code> to use for the window title pane.     */    private void setTitlePane(JRootPane root, JComponent titlePane) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲香蕉伊在人在线观| 精品在线播放午夜| 成人一区二区三区中文字幕| 久久蜜桃av一区精品变态类天堂| 国产精品一区二区视频| 精品美女一区二区| 经典一区二区三区| 国产精品久久久久一区| 99热在这里有精品免费| 一区二区三区四区不卡在线| 欧美一卡二卡三卡| 亚洲精品伦理在线| 69堂亚洲精品首页| 久久99精品国产麻豆婷婷洗澡| 日韩免费高清av| 国产露脸91国语对白| 中文字幕日韩精品一区| 欧美色综合天天久久综合精品| 日日欢夜夜爽一区| 欧美精品一区二区精品网| 盗摄精品av一区二区三区| 亚洲一区二区三区四区在线 | 欧美成人r级一区二区三区| 精品一区二区国语对白| 国产区在线观看成人精品| 91麻豆国产自产在线观看| 五月婷婷色综合| 国产欧美一区在线| 欧美亚洲动漫精品| 国产老女人精品毛片久久| 亚洲精选视频免费看| 日韩一区二区免费在线电影| 成人免费黄色在线| 久久精品国产免费| 一区二区三区蜜桃| 久久中文娱乐网| 欧美日韩精品一区二区| 9久草视频在线视频精品| 精品在线一区二区三区| 亚洲一级二级三级在线免费观看| 国产无一区二区| 制服丝袜亚洲播放| 91久久精品一区二区三| 国产suv精品一区二区883| 偷窥国产亚洲免费视频| 国产精品久久久久婷婷二区次| 日韩欧美国产一区在线观看| 精品国产乱子伦一区| 91久久精品一区二区三| av电影在线观看一区| 国产精品1024| 国产综合成人久久大片91| 亚洲gay无套男同| 亚洲色图色小说| 国产精品激情偷乱一区二区∴| 亚洲精品一区二区三区四区高清 | 欧美色综合久久| 91小视频在线观看| 成人av小说网| 成人亚洲一区二区一| 高清国产一区二区| 国产呦精品一区二区三区网站| 人人爽香蕉精品| 日本女人一区二区三区| 五月天丁香久久| 丝袜诱惑制服诱惑色一区在线观看| 亚洲第一综合色| 亚洲va在线va天堂| 蜜桃视频在线一区| 蜜乳av一区二区三区| 成人午夜精品一区二区三区| 国内精品嫩模私拍在线| 福利一区在线观看| 国产精品自在在线| 国产suv精品一区二区三区| 国产成人免费视频网站| 国产成人精品亚洲777人妖| 成人黄色免费短视频| www.欧美日韩| 日本二三区不卡| 欧美久久一二三四区| 日韩亚洲电影在线| 精品国产123| 国产欧美日韩麻豆91| 国产日产欧美一区| 亚洲天堂免费看| 无码av免费一区二区三区试看| 日本少妇一区二区| 久久精品国产在热久久| 国产精品1024久久| av在线播放不卡| 91黄色免费看| 亚洲乱码国产乱码精品精的特点| 综合久久给合久久狠狠狠97色| 亚洲人成精品久久久久| 亚洲综合色视频| 久国产精品韩国三级视频| av一区二区不卡| 欧美色视频一区| 久久久久久久综合| 欧美经典一区二区| 亚洲一区影音先锋| 国产福利精品一区二区| 在线中文字幕一区二区| 26uuu国产一区二区三区| 亚洲三级免费观看| 美脚の诱脚舐め脚责91| 97se亚洲国产综合自在线观| 69av一区二区三区| 国产精品电影院| 精品一区二区在线视频| 91精品办公室少妇高潮对白| 欧美电影免费观看高清完整版在线观看 | 水蜜桃久久夜色精品一区的特点| 久久99精品久久久| 色悠悠久久综合| 精品免费一区二区三区| 亚洲免费观看高清完整版在线观看熊| 秋霞国产午夜精品免费视频| av在线播放一区二区三区| 91精品国产色综合久久ai换脸 | 青草av.久久免费一区| 国产99久久精品| 日韩视频在线观看一区二区| 国产精品二区一区二区aⅴ污介绍| 蜜乳av一区二区| 欧美日韩免费观看一区三区| 日韩一区在线播放| 国产福利精品一区| 精品少妇一区二区三区在线播放| 亚洲成人免费视频| 色婷婷综合久久久中文一区二区| 久久蜜桃av一区二区天堂| 蜜臀久久99精品久久久久宅男| 久久先锋影音av| 亚洲成人黄色影院| 色婷婷综合久色| 亚洲视频图片小说| 久久精品理论片| 日韩精品综合一本久道在线视频| 亚洲国产日产av| 欧美亚男人的天堂| 亚洲免费av高清| 欧美在线免费观看视频| 依依成人综合视频| 一本色道久久综合亚洲91| 国产精品久久久久久福利一牛影视| 成人少妇影院yyyy| 国产精品护士白丝一区av| 91影视在线播放| 亚洲一级片在线观看| 欧美精品一级二级| 日韩国产欧美一区二区三区| 欧美一区二区三区人| 蜜臀久久久久久久| 精品久久久久久久人人人人传媒| 精品一区中文字幕| 欧美国产日产图区| 色综合久久综合网| 天天操天天干天天综合网| 欧美大片免费久久精品三p| 国产精品亚洲第一| 国产精品久久99| 欧美在线一二三四区| 麻豆国产一区二区| 欧美高清在线一区二区| 91蜜桃传媒精品久久久一区二区 | 欧美三电影在线| 免费视频一区二区| 久久久久久久久久久电影| a级精品国产片在线观看| 亚洲午夜免费电影| 精品88久久久久88久久久| 国产91丝袜在线播放| 亚洲视频一区在线| 日韩一区二区精品| 欧美三级韩国三级日本三斤| 日本色综合中文字幕| 亚洲欧美在线aaa| 欧美一区二区人人喊爽| 成人av资源在线观看| 日本aⅴ亚洲精品中文乱码| 国产精品欧美久久久久无广告| 欧美色涩在线第一页| 国产成人超碰人人澡人人澡| 亚洲午夜免费视频| 国产日产亚洲精品系列| 色综合久久88色综合天天6| 天天亚洲美女在线视频| 中文字幕欧美激情| 欧美日韩一区二区在线观看视频 | 欧美疯狂性受xxxxx喷水图片| 国产美女精品人人做人人爽| 亚洲成在人线免费| 中文文精品字幕一区二区| 欧美久久久影院| 91蜜桃传媒精品久久久一区二区| 国产在线观看一区二区| 亚洲国产中文字幕在线视频综合| 国产无一区二区|