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

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

?? metalrootpaneui.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
        JLayeredPane layeredPane = root.getLayeredPane();        JComponent oldTitlePane = getTitlePane();        if (oldTitlePane != null) {            oldTitlePane.setVisible(false);            layeredPane.remove(oldTitlePane);        }        if (titlePane != null) {            layeredPane.add(titlePane, JLayeredPane.FRAME_CONTENT_LAYER);            titlePane.setVisible(true);        }        this.titlePane = titlePane;    }    /**     * Returns the <code>JComponent</code> rendering the title pane. If this     * returns null, it implies there is no need to render window decorations.     *     * @return the current window title pane, or null     * @see #setTitlePane     */    private JComponent getTitlePane() {        return titlePane;    }    /**     * Returns the <code>JRootPane</code> we're providing the look and     * feel for.     */    private JRootPane getRootPane() {        return root;    }    /**     * Invoked when a property changes. <code>MetalRootPaneUI</code> is     * primarily interested in events originating from the     * <code>JRootPane</code> it has been installed on identifying the     * property <code>windowDecorationStyle</code>. If the      * <code>windowDecorationStyle</code> has changed to a value other     * than <code>JRootPane.NONE</code>, this will add a <code>Component</code>     * to the <code>JRootPane</code> to render the window decorations, as well     * as installing a <code>Border</code> on the <code>JRootPane</code>.     * On the other hand, if the <code>windowDecorationStyle</code> has     * changed to <code>JRootPane.NONE</code>, this will remove the     * <code>Component</code> that has been added to the <code>JRootPane</code>     * as well resetting the Border to what it was before     * <code>installUI</code> was invoked.     *     * @param e A PropertyChangeEvent object describing the event source      *          and the property that has changed.     */    public void propertyChange(PropertyChangeEvent e) {        super.propertyChange(e);                String propertyName = e.getPropertyName();        if(propertyName == null) {            return;        }            if(propertyName.equals("windowDecorationStyle")) {            JRootPane root = (JRootPane) e.getSource();            int style = root.getWindowDecorationStyle();            // This is potentially more than needs to be done,            // but it rarely happens and makes the install/uninstall process            // simpler. MetalTitlePane also assumes it will be recreated if            // the decoration style changes.            uninstallClientDecorations(root);            if (style != JRootPane.NONE) {                installClientDecorations(root);            }        }        else if (propertyName.equals("ancestor")) {            uninstallWindowListeners(root);            if (((JRootPane)e.getSource()).getWindowDecorationStyle() !=                                           JRootPane.NONE) {                installWindowListeners(root, root.getParent());            }        }        return;    }     /**      * A custom layout manager that is responsible for the layout of      * layeredPane, glassPane, menuBar and titlePane, if one has been     * installed.     */    // NOTE: Ideally this would extends JRootPane.RootLayout, but that    //       would force this to be non-static.    private static class MetalRootLayout implements LayoutManager2 {        /**         * Returns the amount of space the layout would like to have.         *         * @param the Container for which this layout manager is being used         * @return a Dimension object containing the layout's preferred size         */         public Dimension preferredLayoutSize(Container parent) {            Dimension cpd, mbd, tpd;            int cpWidth = 0;            int cpHeight = 0;            int mbWidth = 0;            int mbHeight = 0;            int tpWidth = 0;            int tpHeight = 0;            Insets i = parent.getInsets();            JRootPane root = (JRootPane) parent;                if(root.getContentPane() != null) {                cpd = root.getContentPane().getPreferredSize();            } else {                cpd = root.getSize();            }            if (cpd != null) {                cpWidth = cpd.width;                cpHeight = cpd.height;            }            if(root.getMenuBar() != null) {                mbd = root.getMenuBar().getPreferredSize();                if (mbd != null) {                    mbWidth = mbd.width;                    mbHeight = mbd.height;                }            }             if (root.getWindowDecorationStyle() != JRootPane.NONE &&                     (root.getUI() instanceof MetalRootPaneUI)) {                JComponent titlePane = ((MetalRootPaneUI)root.getUI()).                                       getTitlePane();                if (titlePane != null) {                    tpd = titlePane.getPreferredSize();                    if (tpd != null) {                        tpWidth = tpd.width;                        tpHeight = tpd.height;                    }                }            }            return new Dimension(Math.max(Math.max(cpWidth, mbWidth), tpWidth) + i.left + i.right,                                  cpHeight + mbHeight + tpWidth + i.top + i.bottom);        }        /**         * Returns the minimum amount of space the layout needs.         *         * @param the Container for which this layout manager is being used         * @return a Dimension object containing the layout's minimum size         */         public Dimension minimumLayoutSize(Container parent) {            Dimension cpd, mbd, tpd;            int cpWidth = 0;            int cpHeight = 0;            int mbWidth = 0;            int mbHeight = 0;            int tpWidth = 0;            int tpHeight = 0;            Insets i = parent.getInsets();            JRootPane root = (JRootPane) parent;                    if(root.getContentPane() != null) {                cpd = root.getContentPane().getMinimumSize();            } else {                cpd = root.getSize();            }            if (cpd != null) {                cpWidth = cpd.width;                cpHeight = cpd.height;            }            if(root.getMenuBar() != null) {                mbd = root.getMenuBar().getMinimumSize();                if (mbd != null) {                    mbWidth = mbd.width;                    mbHeight = mbd.height;                }            }                        if (root.getWindowDecorationStyle() != JRootPane.NONE &&                     (root.getUI() instanceof MetalRootPaneUI)) {                JComponent titlePane = ((MetalRootPaneUI)root.getUI()).                                       getTitlePane();                if (titlePane != null) {                    tpd = titlePane.getMinimumSize();                    if (tpd != null) {                        tpWidth = tpd.width;                        tpHeight = tpd.height;                    }                }            }            return new Dimension(Math.max(Math.max(cpWidth, mbWidth), tpWidth) + i.left + i.right,                                  cpHeight + mbHeight + tpWidth + i.top + i.bottom);        }        /**         * Returns the maximum amount of space the layout can use.         *         * @param the Container for which this layout manager is being used         * @return a Dimension object containing the layout's maximum size         */         public Dimension maximumLayoutSize(Container target) {            Dimension cpd, mbd, tpd;            int cpWidth = Integer.MAX_VALUE;            int cpHeight = Integer.MAX_VALUE;            int mbWidth = Integer.MAX_VALUE;            int mbHeight = Integer.MAX_VALUE;            int tpWidth = Integer.MAX_VALUE;            int tpHeight = Integer.MAX_VALUE;            Insets i = target.getInsets();            JRootPane root = (JRootPane) target;                    if(root.getContentPane() != null) {                cpd = root.getContentPane().getMaximumSize();                if (cpd != null) {                    cpWidth = cpd.width;                    cpHeight = cpd.height;                }            }            if(root.getMenuBar() != null) {                mbd = root.getMenuBar().getMaximumSize();                if (mbd != null) {                    mbWidth = mbd.width;                    mbHeight = mbd.height;                }            }            if (root.getWindowDecorationStyle() != JRootPane.NONE &&                     (root.getUI() instanceof MetalRootPaneUI)) {                JComponent titlePane = ((MetalRootPaneUI)root.getUI()).                                       getTitlePane();                if (titlePane != null)                {                    tpd = titlePane.getMaximumSize();                    if (tpd != null) {                        tpWidth = tpd.width;                        tpHeight = tpd.height;                    }                }            }            int maxHeight = Math.max(Math.max(cpHeight, mbHeight), tpHeight);            // Only overflows if 3 real non-MAX_VALUE heights, sum to > MAX_VALUE            // Only will happen if sums to more than 2 billion units.  Not likely.            if (maxHeight != Integer.MAX_VALUE) {                maxHeight = cpHeight + mbHeight + tpHeight + i.top + i.bottom;            }                int maxWidth = Math.max(Math.max(cpWidth, mbWidth), tpWidth);            // Similar overflow comment as above            if (maxWidth != Integer.MAX_VALUE) {                maxWidth += i.left + i.right;            }            return new Dimension(maxWidth, maxHeight);        }            /**         * Instructs the layout manager to perform the layout for the specified         * container.         *         * @param the Container for which this layout manager is being used         */         public void layoutContainer(Container parent) {            JRootPane root = (JRootPane) parent;            Rectangle b = root.getBounds();            Insets i = root.getInsets();            int nextY = 0;            int w = b.width - i.right - i.left;            int h = b.height - i.top - i.bottom;                if(root.getLayeredPane() != null) {                root.getLayeredPane().setBounds(i.left, i.top, w, h);            }            if(root.getGlassPane() != null) {                root.getGlassPane().setBounds(i.left, i.top, w, h);            }            // Note: This is laying out the children in the layeredPane,            // technically, these are not our children.            if (root.getWindowDecorationStyle() != JRootPane.NONE &&                     (root.getUI() instanceof MetalRootPaneUI)) {                JComponent titlePane = ((MetalRootPaneUI)root.getUI()).                                       getTitlePane();                if (titlePane != null) {                    Dimension tpd = titlePane.getPreferredSize();                    if (tpd != null) {                        int tpHeight = tpd.height;                        titlePane.setBounds(0, 0, w, tpHeight);                        nextY += tpHeight;                    }                                    }            }            if(root.getMenuBar() != null) {                Dimension mbd = root.getMenuBar().getPreferredSize();                root.getMenuBar().setBounds(0, nextY, w, mbd.height);                nextY += mbd.height;            }            if(root.getContentPane() != null) {                Dimension cpd = root.getContentPane().getPreferredSize();                root.getContentPane().setBounds(0, nextY, w,                 h < nextY ? 0 : h - nextY);            }        }            public void addLayoutComponent(String name, Component comp) {}        public void removeLayoutComponent(Component comp) {}        public void addLayoutComponent(Component comp, Object constraints) {}        public float getLayoutAlignmentX(Container target) { return 0.0f; }        public float getLayoutAlignmentY(Container target) { return 0.0f; }        public void invalidateLayout(Container target) {}    }    /**     * Maps from positions to cursor type. Refer to calculateCorner and     * calculatePosition for details of this.     */    private static final int[] cursorMapping = new int[]    { Cursor.NW_RESIZE_CURSOR, Cursor.NW_RESIZE_CURSOR, Cursor.N_RESIZE_CURSOR,             Cursor.NE_RESIZE_CURSOR, Cursor.NE_RESIZE_CURSOR,      Cursor.NW_RESIZE_CURSOR, 0, 0, 0, Cursor.NE_RESIZE_CURSOR,      Cursor.W_RESIZE_CURSOR, 0, 0, 0, Cursor.E_RESIZE_CURSOR,      Cursor.SW_RESIZE_CURSOR, 0, 0, 0, Cursor.SE_RESIZE_CURSOR,      Cursor.SW_RESIZE_CURSOR, Cursor.SW_RESIZE_CURSOR, Cursor.S_RESIZE_CURSOR,             Cursor.SE_RESIZE_CURSOR, Cursor.SE_RESIZE_CURSOR    };    /**     * MouseInputHandler is responsible for handling resize/moving of     * the Window. It sets the cursor directly on the Window when then

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品久久久男人的天堂 | 亚洲三级在线看| 色八戒一区二区三区| 精品国产91乱码一区二区三区| 欧美一级免费观看| 一区二区三区在线影院| 中文字幕永久在线不卡| 国产成人在线网站| 久久久久99精品一区| 日本大胆欧美人术艺术动态| 成人免费在线观看入口| 国产剧情av麻豆香蕉精品| 日精品一区二区三区| 青草av.久久免费一区| 亚洲综合视频网| 日韩av一区二| 欧美一级片在线| 亚洲综合久久久久| 性做久久久久久久久| 欧美午夜片在线看| 欧美在线高清视频| 91香蕉国产在线观看软件| 国产精品国产三级国产有无不卡 | 蜜臀a∨国产成人精品| 丁香六月综合激情| 精品久久久久久久久久久久久久久久久 | 国产福利不卡视频| 欧美本精品男人aⅴ天堂| 欧美日韩一卡二卡三卡 | 精品视频在线免费观看| 欧美电影在哪看比较好| 91精品在线免费观看| 国产欧美日韩激情| 日韩专区一卡二卡| 成人av影视在线观看| 欧美三级日韩在线| 国产精品午夜电影| 麻豆精品久久久| 在线视频国内自拍亚洲视频| 精品国产三级电影在线观看| 一区二区三区中文字幕电影 | jiyouzz国产精品久久| 欧美三级一区二区| 欧美激情综合五月色丁香| 天堂在线一区二区| 成人精品高清在线| 精品国产乱码91久久久久久网站| 一区二区在线观看视频在线观看| 国产在线国偷精品产拍免费yy| 91丨九色丨蝌蚪富婆spa| 欧美一区二区三区免费视频 | 狠狠狠色丁香婷婷综合激情| 在线观看中文字幕不卡| 国产日韩三级在线| 激情综合网最新| 3d动漫精品啪啪1区2区免费| 国产精品入口麻豆原神| 久久成人18免费观看| 欧美精品自拍偷拍| 亚洲一级在线观看| 在线影院国内精品| 亚洲美女屁股眼交3| 91香蕉视频mp4| 亚洲精品自拍动漫在线| 成人激情综合网站| 欧美国产一区二区在线观看 | 自拍偷拍亚洲激情| 不卡高清视频专区| 亚洲欧洲日本在线| 99久久综合国产精品| 国产精品久久久久国产精品日日| 国产尤物一区二区在线| 久久嫩草精品久久久精品一| 国产一区二区在线视频| 日韩欧美在线影院| 黄一区二区三区| 国产丝袜欧美中文另类| 成人教育av在线| 亚洲天堂精品在线观看| 在线观看网站黄不卡| 亚洲国产va精品久久久不卡综合| 精品视频一区三区九区| 热久久国产精品| 久久久久99精品国产片| 成人av在线一区二区| 亚洲欧美视频在线观看视频| 欧美在线制服丝袜| 蜜桃久久av一区| 中文字幕av一区 二区| av爱爱亚洲一区| 天堂在线一区二区| 精品剧情v国产在线观看在线| 国产高清不卡二三区| 亚洲手机成人高清视频| 欧美日韩久久久| 国产美女精品一区二区三区| 国产精品电影院| 91精品国产综合久久久久久久| 捆绑调教一区二区三区| 日本一区二区久久| 在线观看日韩国产| 日韩激情av在线| 国产精品狼人久久影院观看方式| 欧美午夜精品久久久久久超碰| 免费成人在线观看视频| 最新日韩av在线| 91精品国产综合久久精品app| 国产精品一区二区你懂的| 亚洲一区二区不卡免费| 久久亚洲欧美国产精品乐播| 91在线国产福利| 久久国产剧场电影| 亚洲影院理伦片| 国产精品网曝门| 欧美一级理论性理论a| 色综合天天做天天爱| 韩国一区二区三区| 性欧美疯狂xxxxbbbb| 国产精品视频免费看| 欧美xxx久久| 欧美性大战久久| 成人黄色电影在线| 激情文学综合网| 秋霞午夜av一区二区三区| 国产精品久久久久婷婷| 精品国产凹凸成av人网站| 欧美色图片你懂的| 色综合久久88色综合天天| 国产乱码一区二区三区| 看电视剧不卡顿的网站| 亚洲午夜久久久久久久久电影院| 中文字幕精品一区二区精品绿巨人 | eeuss鲁一区二区三区| 久久精品国产99| 天堂va蜜桃一区二区三区| 亚洲欧美电影院| 最好看的中文字幕久久| 国产丝袜美腿一区二区三区| 精品久久久三级丝袜| 欧美一级片在线观看| 7777精品伊人久久久大香线蕉最新版| 91原创在线视频| 91麻豆123| 欧美在线三级电影| 欧美中文字幕一区二区三区 | 欧美日韩国产一二三| 欧美中文字幕亚洲一区二区va在线| 99综合电影在线视频| 成人福利在线看| 色综合天天综合网天天狠天天| 99re在线视频这里只有精品| 91热门视频在线观看| 91香蕉视频黄| 欧美日韩一级片在线观看| 欧美日韩一级片网站| 欧美一卡二卡在线| 精品久久久久久无| 国产欧美va欧美不卡在线| 国产精品久久久久一区二区三区共| 国产欧美日韩精品一区| 国产精品久久久99| 亚洲国产中文字幕在线视频综合| 亚洲一区二区三区四区在线免费观看 | 91黄色小视频| 9191久久久久久久久久久| 91精品国模一区二区三区| 精品久久久久久久久久久院品网| 精品国产人成亚洲区| 国产精品成人免费精品自在线观看| 亚洲少妇30p| 亚洲成av人影院在线观看网| 蜜桃一区二区三区四区| 国产成人在线观看| 欧洲一区二区三区在线| 欧美一区午夜精品| 久久久久九九视频| 又紧又大又爽精品一区二区| 天天操天天色综合| 国产成人午夜精品5599| 色欧美乱欧美15图片| 日韩亚洲欧美成人一区| 欧美国产一区视频在线观看| 亚洲精品乱码久久久久久黑人| 日韩成人dvd| 成人av资源站| 日韩免费一区二区| 亚洲精品视频在线看| 国内外精品视频| 91国偷自产一区二区三区成为亚洲经典| 91精品欧美福利在线观看| 国产精品初高中害羞小美女文| 视频一区中文字幕| 99re视频精品| 久久综合一区二区| 天堂va蜜桃一区二区三区漫画版| 丰满少妇久久久久久久| 日韩一区二区麻豆国产| 一区二区三区丝袜| 国产成人精品一区二区三区四区 | 欧美成人乱码一区二区三区|