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

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

?? simpleinternalframe.java

?? java的lookandfeel制作的API
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
        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);
        }
    }

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品夜夜嗨| 色综合久久六月婷婷中文字幕| 国产精品久久久久久久久动漫| 欧美日韩高清不卡| 波多野结衣亚洲一区| 全国精品久久少妇| 亚洲综合色成人| 国产精品网站导航| 欧美精品一区二区在线播放| 欧美日韩情趣电影| 99麻豆久久久国产精品免费 | 99re这里只有精品首页| 精品一区二区日韩| 日韩一区欧美二区| 亚洲美女在线国产| 国产精品进线69影院| 久久精品一区蜜桃臀影院| 日韩欧美一级二级三级久久久| 日本高清无吗v一区| 成人福利视频网站| 国产精品自拍在线| 麻豆免费精品视频| 免费观看日韩av| 天堂av在线一区| 婷婷开心久久网| 午夜久久电影网| 亚洲已满18点击进入久久| 亚洲人成亚洲人成在线观看图片| 欧美国产禁国产网站cc| 久久伊99综合婷婷久久伊| 欧美成人一区二区三区在线观看| 欧美酷刑日本凌虐凌虐| 欧美日韩一区二区三区高清| 欧美无乱码久久久免费午夜一区| 91国产视频在线观看| 色香蕉成人二区免费| 91天堂素人约啪| 91久久奴性调教| 色先锋aa成人| 欧美日韩精品一区二区三区蜜桃| 欧美性受极品xxxx喷水| 欧美日韩你懂的| 91精品国产色综合久久不卡蜜臀 | 成人激情av网| www.久久精品| 91久久免费观看| 欧美老年两性高潮| 日韩欧美电影在线| 亚洲精品一区二区三区影院| 国产亚洲精品aa午夜观看| 国产视频在线观看一区二区三区| 中文字幕不卡在线观看| 亚洲欧美日韩小说| 亚洲gay无套男同| 麻豆国产一区二区| 丁香网亚洲国际| 91在线免费播放| 欧美日韩精品专区| 日韩免费性生活视频播放| 久久九九全国免费| 亚洲蜜臀av乱码久久精品| 亚洲高清久久久| 久久精品国产成人一区二区三区 | 黄色成人免费在线| 福利电影一区二区| 色哟哟精品一区| 日韩写真欧美这视频| 国产三级精品在线| 亚洲一二三四在线观看| 久久国产三级精品| 99久久99久久精品免费观看 | 中文字幕不卡在线| 亚洲成在人线在线播放| 九九精品视频在线看| 99国内精品久久| 欧美一区二区三区免费在线看| 国产喷白浆一区二区三区| 一区二区成人在线| 国产乱人伦精品一区二区在线观看| 97久久超碰国产精品电影| 欧美一二三区精品| 国产精品女主播在线观看| 婷婷国产在线综合| 成人在线视频一区二区| 欧美丝袜丝交足nylons| 国产肉丝袜一区二区| 亚洲成av人片在线观看| 国产不卡视频一区| 欧美日本精品一区二区三区| 国产精品电影一区二区三区| 捆绑紧缚一区二区三区视频| 色视频成人在线观看免| 久久精品夜色噜噜亚洲a∨| 亚洲大片免费看| 99久久精品国产毛片| 精品国产一区久久| 亚洲一二三四在线观看| 成人午夜碰碰视频| 亚洲精品在线三区| 婷婷综合在线观看| 日韩美女天天操| 久久先锋影音av鲁色资源网| 香蕉影视欧美成人| 91亚洲男人天堂| 国产精品丝袜一区| 九九九久久久精品| 欧美一区二区视频在线观看2020| 亚洲激情一二三区| 成人av电影在线| 久久综合久久鬼色中文字| 青青青伊人色综合久久| 精品视频一区 二区 三区| 亚洲码国产岛国毛片在线| 成人免费视频播放| 国产亚洲精品资源在线26u| 精品亚洲成av人在线观看| 欧美一激情一区二区三区| 午夜精品久久久久久| 色吊一区二区三区| 亚洲男人电影天堂| av综合在线播放| 国产精品色哟哟网站| 国产精品乡下勾搭老头1| 26uuu欧美| 国产一区二区三区四区五区入口 | 久久精品在线观看| 久久国产精品99精品国产| 91精品国产综合久久香蕉麻豆| 亚洲韩国一区二区三区| 欧美优质美女网站| 亚洲高清视频在线| 欧美天堂一区二区三区| 亚洲成人tv网| 91精品国产aⅴ一区二区| 天天综合网天天综合色| 91麻豆精品国产自产在线观看一区 | 91精品国产一区二区三区蜜臀| 五月天视频一区| 日韩三级视频中文字幕| 老司机一区二区| 国产午夜精品福利| 成人在线视频首页| 亚洲另类中文字| 欧美性猛片aaaaaaa做受| 五月婷婷另类国产| 日韩精品一区二区三区四区| 国产精品99久| 亚洲欧美在线高清| 在线观看视频欧美| 三级久久三级久久| 欧美精品一区二区三区高清aⅴ| 国产乱国产乱300精品| 欧美高清在线一区| 91麻豆免费看| 日本伊人色综合网| 久久久国产精华| 99久久777色| 亚洲va欧美va人人爽午夜| 日韩免费高清av| 成人av电影在线观看| 一区二区国产视频| 日韩免费高清av| 99精品视频在线观看| 亚洲va国产天堂va久久en| 亚洲精品在线免费观看视频| 99精品视频在线观看| 丝袜美腿一区二区三区| 久久久久国产一区二区三区四区| 99精品视频免费在线观看| 欧美美女bb生活片| 日韩精品一二三| 国产日韩欧美在线一区| 欧美性受极品xxxx喷水| 精品一区二区三区蜜桃| 中文字幕中文字幕中文字幕亚洲无线| 欧洲生活片亚洲生活在线观看| 久久国产精品99久久人人澡| 国产精品久久久久桃色tv| 日韩一区二区电影| 91一区二区三区在线观看| 美女视频网站黄色亚洲| 亚洲欧美区自拍先锋| 91精品国产综合久久精品app | 狠狠网亚洲精品| 夜夜精品视频一区二区| 国产亚洲福利社区一区| 欧美视频在线观看一区| 成人在线综合网| 美女视频免费一区| 亚洲欧美日韩电影| 国产亚洲一区二区三区| 欧美日韩国产区一| 99综合电影在线视频| 国产一区二三区| 偷拍与自拍一区| 亚洲欧美怡红院| 国产欧美在线观看一区| 91精品国产美女浴室洗澡无遮挡| 日本精品视频一区二区三区| 懂色av一区二区三区免费观看 |