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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? synthdesktoppaneui.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
字號(hào):
/* * @(#)SynthDesktopPaneUI.java	1.18 03/12/19 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package javax.swing.plaf.synth;import javax.swing.*;import javax.swing.border.*;import javax.swing.plaf.*;import javax.swing.plaf.basic.BasicDesktopPaneUI;import java.beans.*;import java.awt.event.*;import java.awt.Dimension;import java.awt.Insets;import java.awt.Graphics;import java.awt.KeyboardFocusManager;import java.awt.*;import java.util.Vector;import sun.swing.plaf.synth.SynthUI;/** * Synth L&F for a desktop. * * @version 1.18, 12/19/03 * @author Joshua Outwater * @author Steve Wilson */class SynthDesktopPaneUI extends BasicDesktopPaneUI implements                  PropertyChangeListener, SynthUI {    private SynthStyle style;    private TaskBar taskBar;    private DesktopManager oldDesktopManager;    public static ComponentUI createUI(JComponent c) {        return new SynthDesktopPaneUI();    }    protected void installListeners() {        super.installListeners();        desktop.addPropertyChangeListener(this);        if (taskBar != null) {            // Listen for desktop being resized            desktop.addComponentListener(taskBar);            // Listen for frames being added to desktop            desktop.addContainerListener(taskBar);        }    }    protected void installDefaults() {        updateStyle(desktop);        if (UIManager.getBoolean("InternalFrame.useTaskBar")) {            taskBar = new TaskBar();            for (Component comp : desktop.getComponents()) {                JInternalFrame.JDesktopIcon desktopIcon;                if (comp instanceof JInternalFrame.JDesktopIcon) {                    desktopIcon = (JInternalFrame.JDesktopIcon)comp;                } else if (comp instanceof JInternalFrame) {                    desktopIcon = ((JInternalFrame)comp).getDesktopIcon();                } else {                    continue;                }                // Move desktopIcon from desktop to taskBar                if (desktopIcon.getParent() == desktop) {                    desktop.remove(desktopIcon);                }                if (desktopIcon.getParent() != taskBar) {                    taskBar.add(desktopIcon);                    desktopIcon.getInternalFrame().addComponentListener(                        taskBar);                 }            }            taskBar.setBackground(desktop.getBackground());            desktop.add(taskBar,                new Integer(JLayeredPane.PALETTE_LAYER.intValue() + 1));            if (desktop.isShowing()) {                taskBar.adjustSize();            }        }    }    private void updateStyle(JDesktopPane c) {        SynthStyle oldStyle = style;        SynthContext context = getContext(c, ENABLED);        style = SynthLookAndFeel.updateStyle(context, this);        if (oldStyle != null) {            uninstallKeyboardActions();            installKeyboardActions();        }        context.dispose();    }    protected void uninstallListeners() {        if (taskBar != null) {            desktop.removeComponentListener(taskBar);            desktop.removeContainerListener(taskBar);        }        desktop.removePropertyChangeListener(this);        super.uninstallListeners();    }    protected void uninstallDefaults() {        SynthContext context = getContext(desktop, ENABLED);        style.uninstallDefaults(context);        context.dispose();        style = null;        if (taskBar != null) {            for (Component comp : taskBar.getComponents()) {                JInternalFrame.JDesktopIcon desktopIcon =                    (JInternalFrame.JDesktopIcon)comp;                taskBar.remove(desktopIcon);                desktopIcon.setPreferredSize(null);                JInternalFrame f = desktopIcon.getInternalFrame();                if (f.isIcon()) {                    desktop.add(desktopIcon);                }                f.removeComponentListener(taskBar);            }            desktop.remove(taskBar);            taskBar = null;        }    }    protected void installDesktopManager() {        if (UIManager.getBoolean("InternalFrame.useTaskBar")) {            desktopManager = oldDesktopManager = desktop.getDesktopManager();            if (!(desktopManager instanceof SynthDesktopManager)) {                desktopManager = new SynthDesktopManager();                desktop.setDesktopManager(desktopManager);            }        } else {            super.installDesktopManager();        }    }    protected void uninstallDesktopManager() {        if (oldDesktopManager != null && !(oldDesktopManager instanceof UIResource)) {            desktopManager = desktop.getDesktopManager();            if (desktopManager == null || desktopManager instanceof UIResource) {                desktop.setDesktopManager(oldDesktopManager);            }        }        oldDesktopManager = null;        super.uninstallDesktopManager();    }    static class TaskBar extends JPanel implements ComponentListener, ContainerListener {        TaskBar() {            setOpaque(true);            setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0) {                public void layoutContainer(Container target) {                    // First shrink buttons to fit                    Component[] comps = target.getComponents();                    int n = comps.length;                    if (n > 0) {                        // Start with the largest preferred width                        int prefWidth = 0;                        for (Component c : comps) {                            c.setPreferredSize(null);                            Dimension prefSize = c.getPreferredSize();                            if (prefSize.width > prefWidth) {                                prefWidth = prefSize.width;                            }                        }                        // Shrink equally to fit if needed                        Insets insets = target.getInsets();                        int tw = target.getWidth() - insets.left - insets.right;                        int w = Math.min(prefWidth, Math.max(10, tw/n));                        for (Component c : comps) {                            Dimension prefSize = c.getPreferredSize();                            c.setPreferredSize(new Dimension(w, prefSize.height));                        }                    }                    super.layoutContainer(target);                }            });            // PENDING: This should be handled by the painter            setBorder(new BevelBorder(BevelBorder.RAISED) {                protected void paintRaisedBevel(Component c, Graphics g,                                                int x, int y, int w, int h)  {                    Color oldColor = g.getColor();                    g.translate(x, y);                    g.setColor(getHighlightOuterColor(c));                    g.drawLine(0, 0, 0, h-2);                    g.drawLine(1, 0, w-2, 0);                    g.setColor(getShadowOuterColor(c));                    g.drawLine(0, h-1, w-1, h-1);                    g.drawLine(w-1, 0, w-1, h-2);                    g.translate(-x, -y);                    g.setColor(oldColor);                }            });        }        void adjustSize() {            JDesktopPane desktop = (JDesktopPane)getParent();            if (desktop != null) {                int height = getPreferredSize().height;                Insets insets = getInsets();                if (height == insets.top + insets.bottom) {                    if (getHeight() <= height) {                        // Initial size, because we have no buttons yet                        height += 21;                    } else {                        // We already have a good height                        height = getHeight();                    }                }                setBounds(0, desktop.getHeight() - height, desktop.getWidth(), height);                revalidate();                repaint();            }        }        // ComponentListener interface        public void componentResized(ComponentEvent e) {            if (e.getSource() instanceof JDesktopPane) {                adjustSize();            }        }        public void componentMoved(ComponentEvent e){}        public void componentShown(ComponentEvent e) {            if (e.getSource() instanceof JInternalFrame) {                adjustSize();            }        }        public void componentHidden(ComponentEvent e) {            if (e.getSource() instanceof JInternalFrame) {                ((JInternalFrame)e.getSource()).getDesktopIcon().setVisible(false);                revalidate();            }        }        // ContainerListener interface        public void componentAdded(ContainerEvent e) {            if (e.getChild() instanceof JInternalFrame) {                JDesktopPane desktop = (JDesktopPane)e.getSource();                JInternalFrame f = (JInternalFrame)e.getChild();                JInternalFrame.JDesktopIcon desktopIcon = f.getDesktopIcon();                for (Component comp : getComponents()) {                    if (comp == desktopIcon) {                        // We have it already                        return;                    }                }                add(desktopIcon);                f.addComponentListener(this);                 if (getComponentCount() == 1) {                    adjustSize();                }            }        }        public void componentRemoved(ContainerEvent e) {            if (e.getChild() instanceof JInternalFrame) {                JInternalFrame f = (JInternalFrame)e.getChild();                if (!f.isIcon()) {                    // Frame was removed without using setClosed(true)                    remove(f.getDesktopIcon());                    f.removeComponentListener(this);                    revalidate();                    repaint();                }            }        }    }    class SynthDesktopManager extends DefaultDesktopManager implements UIResource {        public void maximizeFrame(JInternalFrame f) {            if (f.isIcon()) {                try {                    f.setIcon(false);                } catch (PropertyVetoException e2) {                }            } else {                f.setNormalBounds(f.getBounds());                Component desktop = f.getParent();                setBoundsForFrame(f, 0, 0,                                  desktop.getWidth(),                                  desktop.getHeight() - taskBar.getHeight());            }            try {                f.setSelected(true);            } catch (PropertyVetoException e2) {            }        }        public void iconifyFrame(JInternalFrame f) {            JInternalFrame.JDesktopIcon desktopIcon;            Container c = f.getParent();            JDesktopPane d = f.getDesktopPane();            boolean findNext = f.isSelected();            if (c == null) {                return;            }            desktopIcon = f.getDesktopIcon();            if (!f.isMaximum()) {                f.setNormalBounds(f.getBounds());            }            c.remove(f);            c.repaint(f.getX(), f.getY(), f.getWidth(), f.getHeight());            try {                f.setSelected(false);            } catch (PropertyVetoException e2) {            }            // Get topmost of the remaining frames            if (findNext) {                for (Component comp : c.getComponents()) {                    if (comp instanceof JInternalFrame) {                        try {                            ((JInternalFrame)comp).setSelected(true);                        } catch (PropertyVetoException e2) {                        }                        ((JInternalFrame)comp).moveToFront();                        return;                    }                }            }        }        public void deiconifyFrame(JInternalFrame f) {            JInternalFrame.JDesktopIcon desktopIcon = f.getDesktopIcon();            Container c = desktopIcon.getParent();            if (c != null) {                c = c.getParent();                if (c != null) {                    c.add(f);                    if (f.isMaximum()) {                        int w = c.getWidth();                        int h = c.getHeight() - taskBar.getHeight();                        if (f.getWidth() != w || f.getHeight() != h) {                            setBoundsForFrame(f, 0, 0, w, h);                        }                    }                    if (f.isSelected()) {                        f.moveToFront();                    } else {                        try {                            f.setSelected(true);                        } catch (PropertyVetoException e2) {                        }                    }                }            }        }        protected void removeIconFor(JInternalFrame f) {            super.removeIconFor(f);            taskBar.validate();        }        public void setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight) {            super.setBoundsForFrame(f, newX, newY, newWidth, newHeight);            if (taskBar != null && newY >= taskBar.getY()) {                f.setLocation(f.getX(), taskBar.getY()-f.getInsets().top);            }        }    }    public SynthContext getContext(JComponent c) {        return getContext(c, getComponentState(c));    }    private SynthContext getContext(JComponent c, int state) {        return SynthContext.getContext(SynthContext.class, c,                     SynthLookAndFeel.getRegion(c), style, state);    }    private Region getRegion(JComponent c) {        return SynthLookAndFeel.getRegion(c);    }    private int getComponentState(JComponent c) {        return SynthLookAndFeel.getComponentState(c);    }    public void update(Graphics g, JComponent c) {        SynthContext context = getContext(c);        SynthLookAndFeel.update(context, g);        context.getPainter().paintDesktopPaneBackground(context, g, 0, 0,                                                  c.getWidth(), c.getHeight());        paint(context, g);        context.dispose();    }    public void paint(Graphics g, JComponent c) {        SynthContext context = getContext(c);        paint(context, g);        context.dispose();    }    protected void paint(SynthContext context, Graphics g) {    }    public void paintBorder(SynthContext context, Graphics g, int x,                            int y, int w, int h) {        context.getPainter().paintDesktopPaneBorder(context, g, x, y, w, h);    }    public void propertyChange(PropertyChangeEvent evt) {        if (SynthLookAndFeel.shouldUpdateStyle(evt)) {            updateStyle((JDesktopPane)evt.getSource());        }        if (evt.getPropertyName() == "ancestor" && taskBar != null) {            taskBar.adjustSize();        }    }}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91视频观看视频| 中文字幕一区视频| 7777精品伊人久久久大香线蕉超级流畅| 91丝袜高跟美女视频| 91在线porny国产在线看| 成人少妇影院yyyy| k8久久久一区二区三区| 97久久精品人人澡人人爽| av电影一区二区| 91影院在线免费观看| 色综合久久中文字幕综合网| 日本福利一区二区| 欧美日韩日本视频| 欧美一级一区二区| 26uuu国产在线精品一区二区| 精品国产91久久久久久久妲己| 久久久久久亚洲综合影院红桃| 国产亚洲欧洲一区高清在线观看| 国产精品久久久久久福利一牛影视| 中文字幕一区二区三区不卡| 夜夜操天天操亚洲| 天使萌一区二区三区免费观看| 五月激情综合色| 久久av老司机精品网站导航| 国产一区欧美二区| 成人激情黄色小说| 欧美日韩一二三区| 精品剧情v国产在线观看在线| 国产女人18水真多18精品一级做 | 日本一区二区三区四区在线视频 | 国产精品的网站| 亚洲午夜电影网| 麻豆专区一区二区三区四区五区| 久草在线在线精品观看| 国产91精品精华液一区二区三区| 91网站视频在线观看| 欧美精品乱人伦久久久久久| 久久久久久免费网| 亚洲一区在线观看免费| 久久精品国产色蜜蜜麻豆| 国产91高潮流白浆在线麻豆 | 色婷婷久久一区二区三区麻豆| 欧美日韩亚洲综合一区二区三区| 精品国产一区二区三区久久久蜜月 | 精品无人码麻豆乱码1区2区| 成人美女在线观看| 7777精品伊人久久久大香线蕉经典版下载 | 久久伊99综合婷婷久久伊| 国产精品久久福利| 午夜日韩在线电影| 国产白丝精品91爽爽久久| 欧美性xxxxxxxx| 国产女人18毛片水真多成人如厕 | 91国产丝袜在线播放| 欧美一区二区福利在线| 日本一区二区免费在线观看视频 | 91丨porny丨户外露出| 欧美一卡2卡3卡4卡| 亚洲视频精选在线| 久久超碰97人人做人人爱| 91香蕉视频在线| 精品福利一二区| 亚洲成人黄色影院| 波多野结衣精品在线| 精品久久久久香蕉网| 亚洲一区在线观看视频| 成人性生交大片免费看在线播放| 欧美一级搡bbbb搡bbbb| 一区二区三区精品在线| 国产成人一级电影| 精品久久国产97色综合| 亚洲国产精品一区二区久久 | 日本高清不卡视频| 欧美国产97人人爽人人喊| 另类成人小视频在线| 日本高清不卡在线观看| 国产精品成人免费| 国产精品一区二区三区99| 91精品国产91久久久久久最新毛片| 亚洲婷婷综合色高清在线| 国产精品一线二线三线| 日韩视频一区在线观看| 日日摸夜夜添夜夜添亚洲女人| 色狠狠综合天天综合综合| 中文天堂在线一区| 国产精品羞羞答答xxdd| 精品少妇一区二区三区在线播放| 视频精品一区二区| 欧美日韩一级黄| 亚洲国产精品久久艾草纯爱 | 亚洲精选视频在线| 成人丝袜高跟foot| 国产精品视频你懂的| 国产精品一区二区在线观看网站| 精品久久人人做人人爽| 寂寞少妇一区二区三区| 日韩美一区二区三区| 久久av资源网| 欧美精品一区二区久久久| 激情综合网天天干| 久久免费的精品国产v∧| 久久超碰97中文字幕| 精品国产一区二区亚洲人成毛片 | 日韩视频一区二区三区| 日本欧美一区二区三区乱码| 欧美福利视频导航| 日韩高清不卡一区二区| 日韩欧美一区二区视频| 久久成人免费网站| 久久久www成人免费毛片麻豆| 国产乱对白刺激视频不卡| 26uuu国产一区二区三区| 国产成人8x视频一区二区| 国产免费观看久久| 色综合久久久久| 亚洲成人www| 日韩一级大片在线观看| 久草这里只有精品视频| 国产欧美视频在线观看| av亚洲精华国产精华| 一区二区三区精品久久久| 欧美年轻男男videosbes| 人禽交欧美网站| 久久精品欧美日韩精品| 97久久久精品综合88久久| 亚洲一区二区三区四区在线观看| 91精品免费在线| 国产在线精品免费| 日韩一区在线播放| 欧美日韩一区二区在线观看视频 | www.视频一区| 一区二区三区av电影| 91精品国产综合久久久蜜臀图片| 九九视频精品免费| 中文字幕视频一区二区三区久| 欧美午夜片在线观看| 男女男精品视频网| 欧美激情一二三区| 欧美天天综合网| 国内精品伊人久久久久av一坑| 国产精品国产三级国产专播品爱网 | 久久国产福利国产秒拍| 国产精品美女久久久久久久久| 日本韩国一区二区三区视频| 免费人成精品欧美精品| 久久久亚洲国产美女国产盗摄 | 国产色产综合色产在线视频 | 精品88久久久久88久久久| 99re成人精品视频| 久久99国产精品久久99| 亚洲人一二三区| 精品国内片67194| 91麻豆123| 国内外精品视频| 亚洲一区二区三区视频在线| 久久久久久久网| 欧美日韩一区不卡| www..com久久爱| 精品一区二区三区在线视频| 亚洲乱码国产乱码精品精的特点| 日韩欧美色综合| 色哟哟一区二区三区| 韩国一区二区视频| 午夜视黄欧洲亚洲| 亚洲天堂精品视频| www国产精品av| 8x8x8国产精品| 日本久久电影网| 成人美女视频在线观看18| 免费欧美在线视频| 亚洲国产精品欧美一二99| 国产精品三级电影| 欧美xxxxx裸体时装秀| 欧美色大人视频| 色综合天天综合网天天看片| 国产精品77777竹菊影视小说| 午夜国产不卡在线观看视频| 亚洲天堂中文字幕| 国产蜜臀97一区二区三区| 精品国产一区二区三区av性色 | 久久综合九色综合欧美亚洲| 欧美日韩久久一区| 91同城在线观看| 大胆亚洲人体视频| 国内成人精品2018免费看| 视频一区二区三区入口| 一区二区成人在线视频| 中文字幕一区二区三区乱码在线 | 国产精品12区| 久久疯狂做爰流白浆xx| 午夜国产精品一区| 五月婷婷久久丁香| 一区二区三区精品在线| 亚洲欧美日韩成人高清在线一区| 欧美国产成人在线| 中文字幕不卡在线观看| 国产精品人成在线观看免费| 国产视频在线观看一区二区三区| 亚洲精品一区二区三区蜜桃下载| 日韩一级完整毛片|