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

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

?? simpleinternalframe.java

?? java的lookandfeel制作的API
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * Copyright (c) 2003 JGoodies Karsten Lentzsch. All Rights Reserved.
 *
 * Redistribution and use in source and binary forms, with or without 
 * modification, are permitted provided that the following conditions are met:
 * 
 *  o Redistributions of source code must retain the above copyright notice, 
 *    this list of conditions and the following disclaimer. 
 *     
 *  o Redistributions in binary form must reproduce the above copyright notice, 
 *    this list of conditions and the following disclaimer in the documentation 
 *    and/or other materials provided with the distribution. 
 *     
 *  o Neither the name of JGoodies Karsten Lentzsch nor the names of 
 *    its contributors may be used to endorse or promote products derived 
 *    from this software without specific prior written permission. 
 *     
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
 */

package com.jgoodies.uif_lite.panel;

import java.awt.*;

import javax.swing.*;
import javax.swing.border.AbstractBorder;

import com.jgoodies.plaf.LookUtils;

/** 
 * A <code>JPanel</code> subclass that has a drop shadow border and 
 * that provides a header with icon, title and tool bar.<p>
 * 
 * This class can be used to replace the <code>JInternalFrame</code>,
 * for use outside of a <code>JDesktopPane</code>. 
 * The <code>SimpleInternalFrame</code> is less flexible but often
 * more usable; it avoids overlapping windows and scales well 
 * up to IDE size.
 * Several customers have reported that they and their clients feel 
 * much better with both the appearance and the UI feel.<p>
 * 
 * The SimpleInternalFrame provides the following bound properties:
 * <i>frameIcon, title, toolBar, content, selected.</i><p>
 * 
 * By default the SimpleInternalFrame is in <i>selected</i> state.
 * If you don't do anything, multiple simple internal frames will
 * be displayed as selected.
 * 
 * @author Karsten Lentzsch
 * @version $Revision: 1.3 $
 * 
 * @see    javax.swing.JInternalFrame
 * @see    javax.swing.JDesktopPane
 */

public class SimpleInternalFrame extends JPanel {

    private JLabel          titleLabel;
    private GradientPanel   gradientPanel;
    private JPanel          headerPanel;
    private boolean        isSelected;
    
    
    // Instance Creation ****************************************************

    /**
     * Constructs a <code>SimpleInternalFrame</code> with the specified title.
     * 
     * @param title       the initial title
     */
    public SimpleInternalFrame(String title) {
        this(null, title, null, null);
    }
    
    
    /**
     * Constructs a <code>SimpleInternalFrame</code> with the specified 
     * icon, and title.
     * 
     * @param icon        the initial icon
     * @param title       the initial title
     */
    public SimpleInternalFrame(Icon icon, String title) {
        this(icon, title, null, null);
    }

    
    /**
     * Constructs a <code>SimpleInternalFrame</code> with the specified 
     * title, tool bar, and content panel.
     * 
     * @param title       the initial title
     * @param bar         the initial tool bar
     * @param content     the initial content pane
     */
    public SimpleInternalFrame(String title, JToolBar bar, JComponent content) {
        this(null, title, bar, content);
    }
    

    /**
     * Constructs a <code>SimpleInternalFrame</code> with the specified 
     * icon, title, tool bar, and content panel.
     * 
     * @param icon        the initial icon
     * @param title       the initial title
     * @param bar         the initial tool bar
     * @param content     the initial content pane
     */
    public SimpleInternalFrame(
        Icon icon,
        String title,
        JToolBar bar,
        JComponent content) {
        super(new BorderLayout());
        this.isSelected = false;
        this.titleLabel = new JLabel(title, icon, SwingConstants.LEADING);
        JPanel top = buildHeader(titleLabel, bar);

        add(top, BorderLayout.NORTH);
        if (content != null) {
            setContent(content);
        }
        setBorder(new ShadowBorder());
        setSelected(true);
        updateHeader();
    }

    
    // Public API ***********************************************************

    /**
     * Returns the frame's icon.
     * 
     * @return the frame's icon
     */
    public Icon getFrameIcon() {
        return titleLabel.getIcon();
    }
    

    /**
     * Sets a new frame icon.
     * 
     * @param newIcon   the icon to be set
     */
    public void setFrameIcon(Icon newIcon) {
        Icon oldIcon = getFrameIcon();
        titleLabel.setIcon(newIcon);
        firePropertyChange("frameIcon", oldIcon, newIcon);
    }
    

    /**
     * Returns the frame's title text.
     * 
     * @return String   the current title text
     */
    public String getTitle() {
        return titleLabel.getText();
    }
    
    
    /**
     * Sets a new title text.
     * 
     * @param newText  the title text tp be set
     */
    public void setTitle(String newText) {
        String oldText = getTitle();
        titleLabel.setText(newText);
        firePropertyChange("title", oldText, newText);
    }
    
    
    /**
     * Returns the current toolbar, null if none has been set before.
     * 
     * @return the current toolbar - if any
     */
    public JToolBar getToolBar() {
        return headerPanel.getComponentCount() > 1
            ? (JToolBar) headerPanel.getComponent(1)
            : null;
    }
    

    /**
     * Sets a new tool bar in the header.
     * 
     * @param newToolBar the tool bar to be set in the header
     */
    public void setToolBar(JToolBar newToolBar) {
        JToolBar oldToolBar = getToolBar();
        if (oldToolBar == newToolBar) {
            return;
        }
        if (oldToolBar != null) {
            headerPanel.remove(oldToolBar);
        }
        if (newToolBar != null) {
            newToolBar.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
            headerPanel.add(newToolBar, BorderLayout.EAST);
        }
        updateHeader();
        firePropertyChange("toolBar", oldToolBar, newToolBar);
    }

    
    /**
     * Returns the content - null, if none has been set.
     * 
     * @return the current content
     */
    public Component getContent() {
        return hasContent() ? getComponent(1) : null;
    }
    
    
    /**
     * Sets a new panel content; replaces any existing content, if existing.
     * 
     * @param newContent   the panel's new content
     */
    public void setContent(Component newContent) {
        Component oldContent = getContent();
        if (hasContent()) {
            remove(oldContent);
        }
        add(newContent, BorderLayout.CENTER);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本特黄久久久高潮| 国产成人亚洲综合a∨婷婷| 麻豆国产精品官网| 97久久超碰精品国产| 欧美一级日韩免费不卡| 综合久久久久综合| 久久66热偷产精品| 欧美一区二区在线看| 一区二区三区成人| 99热国产精品| 国产喷白浆一区二区三区| 日韩成人一区二区三区在线观看| 日本高清无吗v一区| 国产亚洲精品中文字幕| 美女视频黄久久| 欧美一级高清片| 天堂久久久久va久久久久| 日本精品一区二区三区高清| 国产女人aaa级久久久级 | 亚洲成人av在线电影| www.日韩在线| 国产精品乱人伦一区二区| 国产最新精品免费| 日韩欧美高清一区| 日本午夜精品一区二区三区电影| 色94色欧美sute亚洲线路二| 日韩伦理av电影| 99久久久国产精品| 中文字幕一区二区5566日韩| 国产宾馆实践打屁股91| 久久久夜色精品亚洲| 国产一区二三区| 2022国产精品视频| 极品销魂美女一区二区三区| 欧美不卡一二三| 久久国产人妖系列| 久久久精品欧美丰满| 国产精品自在欧美一区| 国产婷婷一区二区| eeuss影院一区二区三区| 亚洲欧洲日韩在线| 欧美色图12p| 三级亚洲高清视频| 精品国产免费人成在线观看| 极品美女销魂一区二区三区 | 国内精品伊人久久久久av一坑| 日韩欧美电影一区| 国产成人av电影在线| 中文字幕一区三区| 欧美性色欧美a在线播放| 午夜精品成人在线视频| 欧美一级xxx| 国产高清不卡一区二区| 国产精品久久免费看| 在线欧美日韩精品| 日韩电影免费在线| 欧美激情在线看| 91国偷自产一区二区开放时间 | 91精品国产综合久久蜜臀| 日本人妖一区二区| 中文字幕第一页久久| 97久久人人超碰| 日本 国产 欧美色综合| 国产亚洲精品精华液| 91国偷自产一区二区使用方法| 麻豆免费精品视频| 中文字幕日韩一区| 日韩一区二区视频在线观看| 国产传媒久久文化传媒| 亚洲午夜影视影院在线观看| 久久―日本道色综合久久| 色婷婷综合久色| 免费人成黄页网站在线一区二区 | 成人丝袜18视频在线观看| 亚洲午夜一二三区视频| 国产日韩欧美综合一区| 欧美网站大全在线观看| 国产成人av资源| 免费高清不卡av| 一区二区三区影院| 国产人妖乱国产精品人妖| 欧美日韩久久不卡| 色综合久久中文字幕综合网| 国产专区综合网| 日日夜夜精品视频免费| 亚洲女同女同女同女同女同69| 欧美精品一区二区在线播放| 欧美在线|欧美| 不卡av免费在线观看| 精品亚洲国产成人av制服丝袜 | 制服丝袜在线91| 在线看日韩精品电影| 国产91精品一区二区麻豆亚洲| 日韩专区欧美专区| 亚洲激情网站免费观看| 国产精品午夜春色av| 欧美xfplay| 日韩一区二区免费电影| 欧美视频自拍偷拍| 欧洲精品一区二区| 97成人超碰视| 成人黄色在线网站| 国产成人自拍高清视频在线免费播放| 奇米综合一区二区三区精品视频| 亚洲二区在线观看| 夜夜操天天操亚洲| 一区二区三区视频在线观看| 国产精品麻豆99久久久久久| 国产精品久久久久毛片软件| 国产亲近乱来精品视频| 中文字幕免费观看一区| 久久久久久久久久久99999| 久久伊人蜜桃av一区二区| 亚洲精品在线电影| 久久综合九色综合97婷婷女人 | 91精品国产91久久久久久最新毛片 | 极品少妇xxxx精品少妇| 麻豆91精品91久久久的内涵| 天使萌一区二区三区免费观看| 亚洲国产日韩精品| 午夜精品爽啪视频| 日韩和的一区二区| 黄色精品一二区| 成人免费视频视频| av在线不卡免费看| 91久久久免费一区二区| 欧美视频在线不卡| 日韩精品一区二区三区在线| 2021国产精品久久精品| 国产精品视频九色porn| 亚洲欧美区自拍先锋| 天天综合色天天综合色h| 久久精品99国产精品| 国产福利一区二区三区视频| 成人精品视频.| 色猫猫国产区一区二在线视频| 在线观看亚洲精品| 日韩精品一区二区三区中文不卡| 国产欧美日韩综合| 1024成人网| 日韩一区精品视频| 国产精品正在播放| 色婷婷久久一区二区三区麻豆| 欧美日韩1区2区| 久久精品水蜜桃av综合天堂| 中文字幕一区二区在线播放| 午夜视频在线观看一区二区| 国产综合成人久久大片91| 99re视频这里只有精品| 日韩一级欧美一级| 国产精品国模大尺度视频| 日韩精品一二三| 成人激情小说乱人伦| 在线不卡的av| 自拍偷拍亚洲综合| 美国十次了思思久久精品导航| 国产精品一品视频| 欧美久久一区二区| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 亚洲国产欧美在线人成| 亚洲一区二区三区小说| 一区二区三区蜜桃网| 老司机精品视频导航| 91理论电影在线观看| 欧美一级黄色大片| 亚洲理论在线观看| 国产在线国偷精品免费看| 色综合久久久久久久久| 久久综合99re88久久爱| 亚洲国产精品久久一线不卡| 国产精品一区二区久激情瑜伽| 欧美日韩一区二区三区四区五区| 国产视频亚洲色图| 免费成人小视频| 在线91免费看| 亚洲综合色婷婷| 色综合久久88色综合天天6 | 国产一区二区三区在线观看精品| 色婷婷av一区二区三区软件 | 97精品电影院| 欧美国产在线观看| 蜜臀av一区二区三区| 成人sese在线| 久久久精品免费免费| 日本欧美在线观看| 欧美男男青年gay1069videost| 国产精品久久久久久久久动漫| 国产一区不卡精品| 日韩欧美一区二区在线视频| 午夜精品福利一区二区三区av| 色偷偷久久一区二区三区| 亚洲丝袜制服诱惑| 99视频在线精品| 亚洲人妖av一区二区| 成人黄色国产精品网站大全在线免费观看 | 久久在线免费观看| 久久99久久99小草精品免视看| 欧美一区二区久久| 久久精品噜噜噜成人av农村| 51精品久久久久久久蜜臀|