亚洲欧美第一页_禁久久精品乱码_粉嫩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在线电影| 久久精品男人的天堂| 精品美女被调教视频大全网站| 久久久精品蜜桃| 亚洲成人一区二区在线观看| 岛国一区二区在线观看| 日韩一级黄色片| 亚洲一区二区三区在线| 成人免费不卡视频| 欧美精品一区二区三区视频| 午夜日韩在线电影| 色综合久久久久综合体| xnxx国产精品| 久久精品国产精品青草| 91.麻豆视频| 亚洲国产欧美日韩另类综合| av在线免费不卡| 中文字幕久久午夜不卡| 国产精品亚洲午夜一区二区三区| 6080日韩午夜伦伦午夜伦| 亚洲亚洲人成综合网络| 色八戒一区二区三区| 综合在线观看色| aaa亚洲精品一二三区| 亚洲国产经典视频| 大尺度一区二区| 久久精品视频网| 国产激情精品久久久第一区二区| 欧美成人bangbros| 久久精品噜噜噜成人av农村| 欧美一卡二卡在线观看| 蜜芽一区二区三区| 欧美一级艳片视频免费观看| 美国十次了思思久久精品导航| 91精品国产一区二区三区香蕉| 五月天一区二区| 欧美一区二区三区视频在线 | 青娱乐精品视频| 欧美一级二级三级蜜桃| 捆绑变态av一区二区三区| 日韩欧美一级在线播放| 乱一区二区av| 国产调教视频一区| 99久久久久免费精品国产| 亚洲精品五月天| 欧美猛男男办公室激情| 美女国产一区二区三区| 国产欧美日韩精品在线| 99国产精品久久久久久久久久久| 亚洲精品免费在线观看| 欧美怡红院视频| 免费看欧美美女黄的网站| 国产午夜亚洲精品午夜鲁丝片| 97se狠狠狠综合亚洲狠狠| 尤物视频一区二区| 日韩欧美中文字幕一区| 国产成人高清在线| 亚洲综合在线五月| 亚洲精品一区二区三区蜜桃下载| 粉嫩aⅴ一区二区三区四区五区| 亚洲欧洲精品一区二区三区| 欧美日韩亚洲丝袜制服| 国产一区二区三区蝌蚪| 亚洲私人黄色宅男| 日韩一区和二区| 波多野结衣在线一区| 天天色综合天天| 中文字幕不卡在线| 9191精品国产综合久久久久久 | 99re这里只有精品6| 丝袜诱惑亚洲看片| 国产视频一区不卡| 在线观看日韩国产| 国产黄色成人av| 亚洲第一久久影院| 国产精品美女久久久久av爽李琼| 91成人在线观看喷潮| 久久国产精品色婷婷| 亚洲免费av高清| 精品国产髙清在线看国产毛片| 成人av在线影院| 麻豆视频一区二区| 伊人夜夜躁av伊人久久| 久久久国产综合精品女国产盗摄| 欧美日韩精品免费| 99精品久久只有精品| 狠狠色丁香九九婷婷综合五月| 一区二区三区精品在线| 国产精品午夜电影| 欧美va亚洲va国产综合| 欧美性猛交xxxx黑人交| av亚洲精华国产精华精华| 国产真实精品久久二三区| 午夜精品福利一区二区三区av| 中文字幕一区在线观看| 国产日产精品1区| 26uuu久久综合| 欧美一级视频精品观看| 欧美日本高清视频在线观看| 色av成人天堂桃色av| 成人黄色国产精品网站大全在线免费观看| 美女爽到高潮91| 秋霞av亚洲一区二区三| 亚洲地区一二三色| 亚洲线精品一区二区三区八戒| 亚洲精品久久7777| 亚洲美女区一区| 亚洲女女做受ⅹxx高潮| 中文字幕av一区二区三区高| 久久综合九色综合97婷婷| 精品国产乱码久久久久久久| 欧美一区二区成人6969| 欧美电影一区二区| 3d动漫精品啪啪| 欧美乱妇15p| 欧美一区二区三区在线观看| 制服视频三区第一页精品| 欧美一卡二卡三卡| 精品久久五月天| 欧美激情综合在线| 综合激情网...| 夜夜操天天操亚洲| 婷婷久久综合九色综合绿巨人| 日本视频免费一区| 精品一区二区三区免费播放| 国产精品亚洲专一区二区三区| 成人听书哪个软件好| 一本大道久久a久久综合婷婷| 欧美亚洲国产一区在线观看网站 | 亚洲一区二区三区四区的| 亚洲午夜羞羞片| 美女视频免费一区| 国产激情精品久久久第一区二区| 波波电影院一区二区三区| 日本丶国产丶欧美色综合| 欧美巨大另类极品videosbest| 欧美区视频在线观看| 久久嫩草精品久久久精品一| 亚洲国产精品成人久久综合一区| 一区二区三区四区不卡在线| 丝袜诱惑制服诱惑色一区在线观看 | 久久精品国产亚洲高清剧情介绍| 国产在线日韩欧美| 92精品国产成人观看免费| 欧美日韩国产123区| 欧美不卡激情三级在线观看| 国产精品不卡在线观看| 亚洲成a人片综合在线| 韩国视频一区二区| 在线观看区一区二| 久久人人超碰精品| 一区二区在线电影| 国产一区中文字幕| 色综合天天在线| 欧美大尺度电影在线| 亚洲丝袜制服诱惑| 黄网站免费久久| 欧美视频精品在线观看| 久久久久久亚洲综合影院红桃| 亚洲最大色网站| 国产91丝袜在线18| 欧美一区二区精品久久911| 亚洲色图丝袜美腿| 国产精品性做久久久久久| 欧美久久一区二区| 成人免费一区二区三区视频| 看电视剧不卡顿的网站| 欧美午夜理伦三级在线观看| 国产精品女同一区二区三区| 免费人成网站在线观看欧美高清| av电影在线观看不卡| 精品国产成人系列| 日韩福利电影在线| 在线欧美一区二区| 国产精品网站一区| 激情深爱一区二区| 欧美一级夜夜爽| 五月婷婷另类国产| 欧美亚洲日本一区| 一区二区三区不卡视频| 不卡一区二区三区四区| 久久亚洲捆绑美女| 免费看精品久久片| 欧美日韩免费电影| 亚洲国产婷婷综合在线精品| 色综合一区二区| 自拍视频在线观看一区二区| 国产激情视频一区二区在线观看 | 亚洲最快最全在线视频| 92国产精品观看| 亚洲欧美日韩综合aⅴ视频| 成人福利视频在线看| 国产香蕉久久精品综合网| 国产在线国偷精品免费看| 精品国精品国产| 国产综合一区二区| 国产午夜精品久久久久久免费视 | 亚洲视频一二三| av资源站一区| 亚洲另类色综合网站|