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

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

?? basicinternalframetitlepane.java

?? java1.6眾多例子參考
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
    protected LayoutManager createLayout() {        return getHandler();    }    private class Handler implements LayoutManager, PropertyChangeListener {        //        // PropertyChangeListener        //        public void propertyChange(PropertyChangeEvent evt) {            String prop = (String)evt.getPropertyName();            if (prop == JInternalFrame.IS_SELECTED_PROPERTY) {                repaint();                return;            }             if (prop == JInternalFrame.IS_ICON_PROPERTY ||                    prop == JInternalFrame.IS_MAXIMUM_PROPERTY) {                setButtonIcons();                enableActions();                return;            }            if ("closable" == prop) {                if ((Boolean)evt.getNewValue() == Boolean.TRUE) {                    add(closeButton);                } else {                    remove(closeButton);                }            } else if ("maximizable" == prop) {                if ((Boolean)evt.getNewValue() == Boolean.TRUE) {                    add(maxButton);                } else {                    remove(maxButton);                }            } else if ("iconable" == prop) {                if ((Boolean)evt.getNewValue() == Boolean.TRUE) {                    add(iconButton);                } else {                    remove(iconButton);                }            }            enableActions();                        revalidate();            repaint();        }        //        // LayoutManager        //        public void addLayoutComponent(String name, Component c) {}        public void removeLayoutComponent(Component c) {}            public Dimension preferredLayoutSize(Container c) {            return minimumLayoutSize(c);        }            public Dimension minimumLayoutSize(Container c) {            // Calculate width.            int width = 22;             if (frame.isClosable()) {                width += 19;            }            if (frame.isMaximizable()) {                width += 19;            }            if (frame.isIconifiable()) {                width += 19;            }            FontMetrics fm = frame.getFontMetrics(getFont());            String frameTitle = frame.getTitle();            int title_w = frameTitle != null ? SwingUtilities2.stringWidth(                               frame, fm, frameTitle) : 0;            int title_length = frameTitle != null ? frameTitle.length() : 0;            // Leave room for three characters in the title.            if (title_length > 3) {                int subtitle_w = SwingUtilities2.stringWidth(                    frame, fm, frameTitle.substring(0, 3) + "...");                width += (title_w < subtitle_w) ? title_w : subtitle_w;            } else {                width += title_w;            }            // Calculate height.            Icon icon = frame.getFrameIcon();            int fontHeight = fm.getHeight();            fontHeight += 2;            int iconHeight = 0;            if (icon != null) {                // SystemMenuBar forces the icon to be 16x16 or less.                iconHeight = Math.min(icon.getIconHeight(), 16);            }            iconHeight += 2;                  int height = Math.max( fontHeight, iconHeight );            Dimension dim = new Dimension(width, height);            // Take into account the border insets if any.            if (getBorder() != null) {                Insets insets = getBorder().getBorderInsets(c);                dim.height += insets.top + insets.bottom;                dim.width += insets.left + insets.right;            }            return dim;        }            public void layoutContainer(Container c) {            boolean leftToRight = BasicGraphicsUtils.isLeftToRight(frame);                        int w = getWidth();            int h = getHeight();            int x;            int buttonHeight = closeButton.getIcon().getIconHeight();            Icon icon = frame.getFrameIcon();            int iconHeight = 0;            if (icon != null) {                iconHeight = icon.getIconHeight();            }            x = (leftToRight) ? 2 : w - 16 - 2;            menuBar.setBounds(x, (h - iconHeight) / 2, 16, 16);            x = (leftToRight) ? w - 16 - 2 : 2;                        if (frame.isClosable()) {                closeButton.setBounds(x, (h - buttonHeight) / 2, 16, 14);                x += (leftToRight) ? -(16 + 2) : 16 + 2;            }                         if (frame.isMaximizable()) {                maxButton.setBounds(x, (h - buttonHeight) / 2, 16, 14);                x += (leftToRight) ? -(16 + 2) : 16 + 2;            }                    if (frame.isIconifiable()) {                iconButton.setBounds(x, (h - buttonHeight) / 2, 16, 14);            }         }    }    /**     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <Foo>.     */    public class PropertyChangeHandler implements PropertyChangeListener {        // NOTE: This class exists only for backward compatability. All        // its functionality has been moved into Handler. If you need to add        // new functionality add it to the Handler, but make sure this              // class calls into the Handler.        public void propertyChange(PropertyChangeEvent evt) {            getHandler().propertyChange(evt);	}    }    /**     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <Foo>.     */    public class TitlePaneLayout implements LayoutManager {        // NOTE: This class exists only for backward compatability. All        // its functionality has been moved into Handler. If you need to add        // new functionality add it to the Handler, but make sure this              // class calls into the Handler.        public void addLayoutComponent(String name, Component c) {            getHandler().addLayoutComponent(name, c);        }        public void removeLayoutComponent(Component c) {            getHandler().removeLayoutComponent(c);        }            public Dimension preferredLayoutSize(Container c)  {            return getHandler().preferredLayoutSize(c);	}            public Dimension minimumLayoutSize(Container c) {            return getHandler().minimumLayoutSize(c);	}            public void layoutContainer(Container c) {            getHandler().layoutContainer(c);	}    }    /**     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <Foo>.     */      public class CloseAction extends AbstractAction {        public CloseAction() {	    super(CLOSE_CMD);        }        public void actionPerformed(ActionEvent e) {	    if(frame.isClosable()) {		frame.doDefaultCloseAction();	    }	}          } // end CloseAction    /**     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <Foo>.     */    public class MaximizeAction extends AbstractAction {        public MaximizeAction() {	    super(MAXIMIZE_CMD);        }        public void actionPerformed(ActionEvent evt) {	    if (frame.isMaximizable()) {                if (frame.isMaximum() && frame.isIcon()) {                    try {                        frame.setIcon(false);                    } catch (PropertyVetoException e) { }                } else if (!frame.isMaximum()) {		    try {                        frame.setMaximum(true);                    } catch (PropertyVetoException e) { }		} else {		    try { 		        frame.setMaximum(false); 		    } catch (PropertyVetoException e) { }		}	    }	}    }    /**     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <Foo>.     */    public class IconifyAction extends AbstractAction {        public IconifyAction() {	    super(ICONIFY_CMD);        }        public void actionPerformed(ActionEvent e) {	    if(frame.isIconifiable()) {	      if(!frame.isIcon()) {		try { frame.setIcon(true); } catch (PropertyVetoException e1) { }	      } else{		try { frame.setIcon(false); } catch (PropertyVetoException e1) { }	      }	    }	}    } // end IconifyAction    /**     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <Foo>.     */    public class RestoreAction extends AbstractAction {        public RestoreAction() {	    super(RESTORE_CMD);        }        public void actionPerformed(ActionEvent evt) {	    if (frame.isMaximizable() && frame.isMaximum() && frame.isIcon()) {	        try {                    frame.setIcon(false);                } catch (PropertyVetoException e) { }	    } else if (frame.isMaximizable() && frame.isMaximum()) {                try {                    frame.setMaximum(false);                } catch (PropertyVetoException e) { }            } else if (frame.isIconifiable() && frame.isIcon()) {	        try {                    frame.setIcon(false);                } catch (PropertyVetoException e) { }	    }	}          }    /**     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <Foo>.     */    public class MoveAction extends AbstractAction {        public MoveAction() {	    super(MOVE_CMD);        }        public void actionPerformed(ActionEvent e) {	    // This action is currently undefined	}          } // end MoveAction    /*     * Handles showing and hiding the system menu.     */    private class ShowSystemMenuAction extends AbstractAction {	private boolean show;	// whether to show the menu		public ShowSystemMenuAction(boolean show) {	    this.show = show;	}        public void actionPerformed(ActionEvent e) {	    if (show) {		windowMenu.doClick();	    } else {		windowMenu.setVisible(false);	    }	}          }    /**     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <Foo>.     */    public class SizeAction extends AbstractAction {        public SizeAction() {	    super(SIZE_CMD);        }        public void actionPerformed(ActionEvent e) {	    // This action is currently undefined	}          } // end SizeAction    /**     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <Foo>.     */    public class SystemMenuBar extends JMenuBar {	public boolean isFocusTraversable() { return false; }	public void requestFocus() {}	public void paint(Graphics g) {	    Icon icon = frame.getFrameIcon();	    if (icon == null) {	      icon = (Icon)DefaultLookup.get(frame, frame.getUI(),                      "InternalFrame.icon");	    }	    if (icon != null) {	        // Resize to 16x16 if necessary.	        if (icon instanceof ImageIcon && (icon.getIconWidth() > 16 || icon.getIconHeight() > 16)) {		    Image img = ((ImageIcon)icon).getImage();		    ((ImageIcon)icon).setImage(img.getScaledInstance(16, 16, Image.SCALE_SMOOTH));		}		icon.paintIcon(this, g, 0, 0);	    }	}	public boolean isOpaque() { 	    return true; 	}    } // end SystemMenuBar    private class NoFocusButton extends JButton {        private String uiKey;        public NoFocusButton(String uiKey, String opacityKey) {            setFocusPainted(false);            setMargin(new Insets(0,0,0,0));            this.uiKey = uiKey;                        Object opacity = UIManager.get(opacityKey);            if (opacity instanceof Boolean) {                setOpaque(((Boolean)opacity).booleanValue());            }        }	public boolean isFocusTraversable() { return false; }	public void requestFocus() {};        public AccessibleContext getAccessibleContext() {            AccessibleContext ac = super.getAccessibleContext();            if (uiKey != null) {                ac.setAccessibleName(UIManager.getString(uiKey));                uiKey = null;            }            return ac;        }    };  // end NoFocusButton}   // End Title Pane Class

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜一区二区三区| 91精品一区二区三区久久久久久 | 美女视频黄 久久| 精品国产精品网麻豆系列 | 成人av在线资源网站| 日韩精品欧美成人高清一区二区| 久久久噜噜噜久久人人看| 欧美视频一二三区| 91麻豆精品一区二区三区| 美女精品一区二区| 亚洲成a人片在线观看中文| 亚洲视频在线观看一区| 日韩欧美aaaaaa| 欧美一区二区三区免费| 欧美少妇性性性| 在线免费不卡视频| 666欧美在线视频| 欧美一区二区视频观看视频| 欧美sm美女调教| 久久久精品黄色| 亚洲色图.com| 丝袜美腿亚洲色图| 亚洲午夜成aⅴ人片| 性做久久久久久久久| 成人听书哪个软件好| 国产成人免费在线视频| 成人高清视频免费观看| 色综合久久中文字幕综合网| 69久久99精品久久久久婷婷| 北岛玲一区二区三区四区| 99精品视频在线观看免费| 久久久噜噜噜久噜久久综合| 精品国产三级电影在线观看| 久久久99精品免费观看| 亚洲欧美日韩一区二区 | 日韩欧美在线一区二区三区| 欧美激情综合在线| 亚洲人成在线观看一区二区| 五月天激情综合网| 国产精品911| 欧美精品久久99久久在免费线 | 91国产福利在线| 精品久久免费看| 亚洲一区二区三区美女| 国内精品久久久久影院一蜜桃| 一本到不卡免费一区二区| 精品成人一区二区| 亚洲一本大道在线| av一区二区三区| 久久这里只有精品视频网| 亚洲一二三四区| 成人午夜短视频| 精品日韩在线观看| 日韩精品1区2区3区| 欧洲一区二区av| 亚洲天堂中文字幕| 国产乱色国产精品免费视频| 欧美一区二区三区色| 亚洲图片欧美色图| 欧美性视频一区二区三区| 国产精品电影院| 成人网在线播放| 国产精品天美传媒| 成人av手机在线观看| 国产色产综合产在线视频| 国产成人精品午夜视频免费| 久久久www成人免费毛片麻豆| 美女一区二区三区在线观看| 欧美一级生活片| 免费不卡在线观看| 欧美mv日韩mv国产网站app| 蜜桃久久精品一区二区| 亚洲精品在线免费观看视频| 国产精品影视网| 1000部国产精品成人观看| 91久久香蕉国产日韩欧美9色| 亚洲自拍偷拍图区| 日韩精品资源二区在线| 国产精品亚洲人在线观看| 中文字幕一区二区三区在线观看 | 久久精品网站免费观看| 99re免费视频精品全部| 欧美精品色综合| 亚洲不卡在线观看| 精品国产一区二区三区四区四| 久久精品国产澳门| 中文字幕成人av| 欧美亚洲一区二区在线| 免费av网站大全久久| 国产精品美女久久久久av爽李琼 | 在线亚洲免费视频| 久久66热偷产精品| 亚洲精品乱码久久久久久久久| 91麻豆精品国产自产在线| 国产馆精品极品| 视频一区在线播放| 国产精品久久久久久久浪潮网站| 欧美日韩aaaaa| 成人不卡免费av| 91福利视频久久久久| 国产精品一区二区久激情瑜伽| 一区二区视频在线| 国产欧美一区二区精品婷婷| 日韩一级视频免费观看在线| 日本高清不卡一区| 成人激情校园春色| 国产乱人伦偷精品视频免下载| 91视视频在线直接观看在线看网页在线看 | 91精品婷婷国产综合久久| 99re这里都是精品| 99热精品国产| 成人国产精品免费观看动漫| 国产在线看一区| 久久er精品视频| 久久超碰97人人做人人爱| 五月天激情综合网| 秋霞成人午夜伦在线观看| 三级欧美韩日大片在线看| 亚洲一级电影视频| 天堂一区二区在线免费观看| 亚洲国产日韩综合久久精品| 亚洲国产cao| 欧美aaa在线| 国产乱码精品一区二区三区五月婷| 久久99国产精品免费网站| 狠狠色狠狠色综合| 成人一级片网址| 91社区在线播放| 欧美日韩亚洲综合一区| 欧美成人在线直播| 国产精品网曝门| 婷婷综合五月天| 国产精品伊人色| 欧美性色黄大片手机版| 精品美女在线观看| 国产精品二区一区二区aⅴ污介绍| 玉足女爽爽91| 九色综合狠狠综合久久| 色综合久久久网| 久久影院午夜论| 一二三四社区欧美黄| 精品亚洲成a人| 欧洲国产伦久久久久久久| 日韩视频免费观看高清完整版 | 国产欧美日韩不卡免费| 一区二区三区在线观看动漫| 精品一区免费av| 91国产丝袜在线播放| 久久综合999| 婷婷中文字幕一区三区| av不卡免费在线观看| 精品国产免费人成在线观看| 一二三区精品福利视频| 丁香一区二区三区| 日韩一区二区三| 日韩中文字幕麻豆| 欧洲人成人精品| 日韩理论电影院| av在线不卡网| 国产精品五月天| 国产一区二区三区黄视频| 在线成人免费视频| 一二三四区精品视频| 一本色道久久综合亚洲精品按摩| 久久久久综合网| 极品美女销魂一区二区三区免费| 欧美一区二区视频在线观看| 午夜不卡av免费| 日韩三级.com| 国产美女精品人人做人人爽| 久久精品夜色噜噜亚洲a∨| 国产精品自拍av| 国产欧美久久久精品影院| 欧美猛男超大videosgay| 亚洲午夜精品网| 欧美精品在欧美一区二区少妇| 亚洲午夜精品网| 欧美电视剧免费观看| 国产综合成人久久大片91| 久久久久久夜精品精品免费| 国产成人av一区二区三区在线 | 国产成+人+日韩+欧美+亚洲| 国产精品美女久久久久久久久 | 91久久精品国产91性色tv| 亚洲小说春色综合另类电影| 欧美一区二区三区成人| 国产一区二区三区久久悠悠色av| 亚洲欧洲日本在线| 欧美性大战久久| 国产在线国偷精品免费看| 亚洲欧洲国产日韩| 日韩写真欧美这视频| 成人免费电影视频| 午夜一区二区三区在线观看| 久久午夜国产精品| 在线观看国产一区二区| 国产麻豆精品在线| 亚洲黄色小视频| 国产午夜亚洲精品不卡| 欧美二区在线观看|