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

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

?? simpleinternalframe.java

?? Gmail API for Java 一個gmail信箱的客戶端
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
        firePropertyChange("content", oldContent, newContent);
    }
    

    /**
     * Answers if the panel is currently selected (or in other words active)
     * or not. In the selected state, the header background will be
     * rendered differently.
     * 
     * @return boolean  a boolean, where true means the frame is selected 
     *                  (currently active) and false means it is not  
     */
    public boolean isSelected() {
        return isSelected;
    }
    
    
    /**
     * This panel draws its title bar differently if it is selected,
     * which may be used to indicate to the user that this panel
     * has the focus, or should get more attention than other
     * simple internal frames.
     *
     * @param newValue  a boolean, where true means the frame is selected 
     *                  (currently active) and false means it is not
     */
    public void setSelected(boolean newValue) {
        boolean oldValue = isSelected();
        isSelected = newValue;
        updateHeader();
        firePropertyChange("selected", oldValue, newValue);
    }
    

    // Building *************************************************************

    /**
     * Creates and answers the header panel, that consists of:
     * an icon, a title label, a tool bar, and a gradient background.
     * 
     * @param label   the label to paint the icon and text
     * @param bar     the panel's tool bar
     * @return the panel's built header area
     */
    private JPanel buildHeader(JLabel label, JToolBar bar) {
        gradientPanel =
            new GradientPanel(new BorderLayout(), getHeaderBackground());
        label.setOpaque(false);

        gradientPanel.add(label, BorderLayout.WEST);
        gradientPanel.setBorder(BorderFactory.createEmptyBorder(3, 4, 3, 1));

        headerPanel = new JPanel(new BorderLayout());
        headerPanel.add(gradientPanel, BorderLayout.CENTER);
        setToolBar(bar);
        headerPanel.setBorder(new RaisedHeaderBorder());
        headerPanel.setOpaque(false);
        return headerPanel;
    }

    /**
     * Updates the header.
     */
    private void updateHeader() {
        gradientPanel.setBackground(getHeaderBackground());
        gradientPanel.setOpaque(isSelected());
        titleLabel.setForeground(getTextForeground(isSelected()));
        headerPanel.repaint();
    }
    

    /**
     * Updates the UI. In addition to the superclass behavior, we need
     * to update the header component.
     */
    public void updateUI() {
        super.updateUI();
        if (titleLabel != null) {
            updateHeader();
        }
    }


    // Helper Code **********************************************************

    /**
     * Checks and answers if the panel has a content component set.
     * 
     * @return true if the panel has a content, false if it's empty
     */
    private boolean hasContent() {
        return getComponentCount() > 1;
    }
    
    /**
     * Determines and answers the header's text foreground color.
     * Tries to lookup a special color from the L&F.
     * In case it is absent, it uses the standard internal frame forground.
     * 
     * @param selected   true to lookup the active color, false for the inactive
     * @return the color of the foreground text
     */
    protected Color getTextForeground(boolean selected) {
        Color c =
            UIManager.getColor(
                selected
                    ? "SimpleInternalFrame.activeTitleForeground"
                    : "SimpleInternalFrame.inactiveTitleForeground");
        if (c != null) {
            return c;
        }
        return UIManager.getColor(
            selected 
                ? "InternalFrame.activeTitleForeground" 
                : "Label.foreground");

    }

    /**
     * Determines and answers the header's background color.
     * Tries to lookup a special color from the L&F.
     * In case it is absent, it uses the standard internal frame background.
     * 
     * @return the color of the header's background
     */
    protected Color getHeaderBackground() {
        Color c =
            UIManager.getColor("SimpleInternalFrame.activeTitleBackground");
        if (c != null)
            return c;
        if (LookUtils.IS_LAF_WINDOWS_XP_ENABLED)
            c = UIManager.getColor("InternalFrame.activeTitleGradient");
        return c != null
            ? c
            : UIManager.getColor("InternalFrame.activeTitleBackground");
    }


    // Helper Classes *******************************************************

    // A custom border for the raised header pseudo 3D effect.
    private static class RaisedHeaderBorder extends AbstractBorder {

        private static final Insets INSETS = new Insets(1, 1, 1, 0);

        public Insets getBorderInsets(Component c) { return INSETS; }

        public void paintBorder(Component c, Graphics g,
            int x, int y, int w, int h) {
                
            g.translate(x, y);
            g.setColor(UIManager.getColor("controlLtHighlight"));
            g.fillRect(0, 0,   w, 1);
            g.fillRect(0, 1,   1, h-1);
            g.setColor(UIManager.getColor("controlShadow"));
            g.fillRect(0, h-1, w, 1);
            g.translate(-x, -y);
        }
    }

    // A custom border that has a shadow on the right and lower sides.
    private static class ShadowBorder extends AbstractBorder {

        private static final Insets INSETS = new Insets(1, 1, 3, 3);

        public Insets getBorderInsets(Component c) { return INSETS; }

        public void paintBorder(Component c, Graphics g,
            int x, int y, int w, int h) {
                
            Color shadow        = UIManager.getColor("controlShadow");
            if (shadow == null) {
                shadow = Color.GRAY;
            }
            Color lightShadow   = new Color(shadow.getRed(), 
                                            shadow.getGreen(), 
                                            shadow.getBlue(), 
                                            170);
            Color lighterShadow = new Color(shadow.getRed(),
                                            shadow.getGreen(),
                                            shadow.getBlue(),
                                            70);
            g.translate(x, y);
            
            g.setColor(shadow);
            g.fillRect(0, 0, w - 3, 1);
            g.fillRect(0, 0, 1, h - 3);
            g.fillRect(w - 3, 1, 1, h - 3);
            g.fillRect(1, h - 3, w - 3, 1);
            // Shadow line 1
            g.setColor(lightShadow);
            g.fillRect(w - 3, 0, 1, 1);
            g.fillRect(0, h - 3, 1, 1);
            g.fillRect(w - 2, 1, 1, h - 3);
            g.fillRect(1, h - 2, w - 3, 1);
            // Shadow line2
            g.setColor(lighterShadow);
            g.fillRect(w - 2, 0, 1, 1);
            g.fillRect(0, h - 2, 1, 1);
            g.fillRect(w-2, h-2, 1, 1);
            g.fillRect(w - 1, 1, 1, h - 2);
            g.fillRect(1, h - 1, w - 2, 1);
            g.translate(-x, -y);
        }
    }

    // A panel with a horizontal gradient background.
    private static class GradientPanel extends JPanel {
        
        private GradientPanel(LayoutManager lm, Color background) {
            super(lm);
            setBackground(background);
        }

        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            if (!isOpaque()) {
                return;
            }
            Color control = UIManager.getColor("control");
            int width  = getWidth();
            int height = getHeight();

            Graphics2D g2 = (Graphics2D) g;
            Paint storedPaint = g2.getPaint();
            g2.setPaint(
                new GradientPaint(0, 0, getBackground(), width, 0, control));
            g2.fillRect(0, 0, width, height);
            g2.setPaint(storedPaint);
        }
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕巨乱亚洲| 成人网在线免费视频| 日韩中文字幕亚洲一区二区va在线| 成人av午夜电影| 国产a视频精品免费观看| 欧美日精品一区视频| 久久日韩粉嫩一区二区三区| 亚洲综合图片区| 成人看片黄a免费看在线| 欧美一区二区国产| 亚洲人成影院在线观看| 国产高清视频一区| 日韩欧美国产一区在线观看| 亚洲午夜精品在线| 一本一道综合狠狠老| 欧美国产欧美亚州国产日韩mv天天看完整 | 在线视频综合导航| 日本欧美一区二区在线观看| 在线观看免费亚洲| 欧美不卡一二三| 香蕉av福利精品导航| 91成人免费电影| 欧美国产精品劲爆| 免费欧美在线视频| 欧美日韩欧美一区二区| 欧美婷婷六月丁香综合色| 国产精品国产自产拍高清av| 狠狠色丁香久久婷婷综| 日韩精品一区二区三区老鸭窝| 午夜欧美一区二区三区在线播放| 99re热这里只有精品免费视频 | 久久精品视频在线免费观看| 日韩黄色在线观看| 6080亚洲精品一区二区| 午夜久久久久久| 91精品国产综合久久蜜臀| 日日夜夜免费精品| 欧美久久一二区| 日本免费新一区视频| 日韩一级免费一区| 精品影视av免费| 久久亚洲春色中文字幕久久久| 极品少妇xxxx偷拍精品少妇| 久久女同性恋中文字幕| 国产麻豆精品一区二区| 欧美高清在线精品一区| 91网站视频在线观看| 一区二区三区在线高清| 欧美剧情片在线观看| 久久精品国产在热久久| 欧美精品一区二区三区很污很色的| 国产资源在线一区| 国产精品免费久久久久| 97精品视频在线观看自产线路二| 亚洲精品国产a久久久久久| 欧美在线免费观看视频| 日本美女一区二区三区视频| 国产日韩精品视频一区| 91美女片黄在线| 日韩精品色哟哟| 久久久久综合网| 久久久综合精品| 亚洲国产精品欧美一二99| 8x福利精品第一导航| 性感美女久久精品| 伦理电影国产精品| 欧美日本一道本| 91福利在线免费观看| 久久久久久久精| 一区二区三区成人在线视频| 国模一区二区三区白浆| 欧美高清你懂得| 国产午夜精品福利| 亚洲一区二区三区影院| 另类欧美日韩国产在线| 日本中文字幕不卡| 国产一区日韩二区欧美三区| 欧美无砖砖区免费| 亚洲女与黑人做爰| 久久伊99综合婷婷久久伊| 99在线精品观看| 五月天婷婷综合| 国产v综合v亚洲欧| 欧美日本在线播放| 亚洲一区在线观看视频| 国产a视频精品免费观看| 欧美日韩国产bt| 亚洲国产精品天堂| 99国产欧美久久久精品| 久久久国产午夜精品| 久久99久久99精品免视看婷婷| 在线看日韩精品电影| 最新中文字幕一区二区三区| 国产一区二区成人久久免费影院| 91精品免费在线观看| 午夜视频久久久久久| 欧美吞精做爰啪啪高潮| 亚洲激情自拍偷拍| 欧美日韩在线观看一区二区| 偷拍一区二区三区四区| 7777精品伊人久久久大香线蕉最新版| 久久国产尿小便嘘嘘尿| 久久免费视频一区| 久久婷婷久久一区二区三区| 中文字幕在线观看不卡| 在线观看91av| 欧美一级高清片| 国产精品久久看| 亚洲色图另类专区| 亚洲成av人片一区二区三区 | 日韩一级二级三级| 国产精品传媒在线| 顶级嫩模精品视频在线看| 亚洲欧洲日韩av| 国产精品情趣视频| 国产午夜精品在线观看| 久久奇米777| 久久美女高清视频| 精品国产髙清在线看国产毛片| 九九国产精品视频| 全部av―极品视觉盛宴亚洲| 狠狠狠色丁香婷婷综合激情| 国产高清不卡一区二区| 一二三区精品福利视频| 国产欧美日韩在线看| 欧美一区二区性放荡片| 老司机午夜精品99久久| 亚洲综合在线五月| 一区二区三区日韩| 久久久99精品久久| 欧美不卡在线视频| 欧美美女网站色| 久久精品视频一区二区| 色婷婷综合久久| 色偷偷久久人人79超碰人人澡| 国产99精品国产| 国产成人精品www牛牛影视| 青青草伊人久久| 国产一区二区网址| 欧美性三三影院| 欧美一级免费大片| 九九精品视频在线看| 艳妇臀荡乳欲伦亚洲一区| 调教+趴+乳夹+国产+精品| 另类小说一区二区三区| 波多野结衣在线一区| 亚洲成人自拍偷拍| 欧美一区二区三区日韩视频| 久久久三级国产网站| 国产精品另类一区| 亚洲最快最全在线视频| 久久超碰97人人做人人爱| 成人自拍视频在线观看| 欧美午夜免费电影| 精品乱码亚洲一区二区不卡| 国产精品久久久久久久浪潮网站| 亚洲第一搞黄网站| 成人av先锋影音| 日韩欧美一区在线观看| 亚洲欧美国产三级| 久久99精品久久久久久| 日本精品免费观看高清观看| 日韩精品一区二区三区中文不卡| 亚洲视频在线一区观看| 久久66热re国产| 在线看一区二区| 国产精品理论在线观看| 麻豆久久久久久久| 91国偷自产一区二区开放时间| 精品少妇一区二区三区免费观看| 亚洲女人小视频在线观看| 国产精品一区二区黑丝| 欧美欧美午夜aⅴ在线观看| 国产精品色一区二区三区| 美女在线观看视频一区二区| 欧洲精品中文字幕| 国产精品色呦呦| 国产资源精品在线观看| 欧美一级黄色录像| 亚洲高清三级视频| 91免费小视频| 国产精品久久久久天堂| 国产自产2019最新不卡| 欧美一区二区三区公司| 亚洲国产精品久久久久秋霞影院| 成人精品免费看| 国产亚洲精品福利| 狠狠狠色丁香婷婷综合激情| 欧美成人午夜电影| 日本一不卡视频| 欧美精品少妇一区二区三区| 亚洲一线二线三线久久久| 91网站最新网址| 中文字幕视频一区二区三区久| 国产成人精品综合在线观看| 久久一留热品黄| 国产一区二区美女| 久久久亚洲精品石原莉奈| 国产一区二区女| 亚洲国产精品黑人久久久|