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

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

?? officexplookandfeel.java

?? JAVA swing 的office xp 和 office2003 風格。
?? JAVA
字號:
/* ====================================================================
 * 
 * Office Look and Feels License
 * http://sourceforge.net/projects/officelnfs
 *
 * Copyright (c) 2003-2005 Robert Futrell.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer. 
 *
 * 2. 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.
 *
 * 3. The names "Office Look And Feels" and "OfficeLnFs" must not
 *    be used to endorse or promote products derived from this software
 *    without prior written permission. For written permission, please
 *    contact robert_futrell@users.sourceforge.net.
 *
 * 4. Products derived from this software may not be called "OfficeLnFs"
 *    nor may "OfficeLnFs" appear in their names without prior written
 *    permission.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 org.fife.plaf.OfficeXP;

import java.awt.Color;
import java.awt.Insets;
import java.util.Locale;
import javax.swing.JComponent;
import javax.swing.LookAndFeel;
import javax.swing.UIDefaults;

import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;


/**
 * A Look and Feel designed to mimic Microsoft Office XP applications.
 * It is essentially the Windows Look and Feel, except that the menus
 * and toolbar buttons are painted differently.<p>
 *
 * This look tries to sync itself with the current Windows color scheme
 * (in Windows XP, there's "blue," "olive green," "silver" and
 * "Windows Classic," which is used when XP styles are disabled).  If
 * you wish to override this behavior, and keep your application using
 * the "blue" color scheme, for example, try setting
 * <code>THEME_PROPERTY</code> before setting the look and feel.  For
 * example,<p>
 *
 * <pre>
 * System.setProperty(OfficeXPLookAndFeel.THEME_PROPERTY, OfficeXPLookAndFeel.THEME_BLUE);
 * UIManager.setLookAndFeel("org.fife.plaf.OfficeXP.OfficeXPLookAndFeel");
 * </pre>
 *
 * @author Robert Futrell
 * @version 1.0
 */
public class OfficeXPLookAndFeel extends WindowsLookAndFeel {

	/**
	 * Property that, if set to "blue", "olive", "silver" or "classic"
	 * will override the Windows system theme.
	 */
	public static final String THEME_PROPERTY	= "OfficeLnFs.theme";

	/**
	 * Value for <code>THEME_PROPERTY</code> specifying the blue
	 * color scheme.
	 */
	public static final String THEME_BLUE		= "blue";

	/**
	 * Value for <code>THEME_PROPERTY</code> specifying the olive
	 * green color scheme.
	 */
	public static final String THEME_OLIVE		= "olive";

	/**
	 * Value for <code>THEME_PROPERTY</code> specifying the silver
	 * color scheme.
	 */
	public static final String THEME_SILVER		= "silver";

	/**
	 * Value for <code>THEME_PROPERTY</code> specifying the
	 * Windows Classic color scheme.
	 */
	public static final String THEME_CLASSIC	= "classic";


	/**
	 * Manages Look and Feel-specific colors.  We keep this guy around
	 * to listen for desktop theme changes, so we can update our colors
	 * accordingly (Swing updates standard colors, but Office looks add
	 * their own).
	 */
	private OfficeXPColorManager colorManager;


	protected OfficeXPColorManager createColorManager() {
		return new OfficeXPColorManager();
	}


	public String getDescription() {
		return "The Microsoft Office XP Look and Feel";
	}


	public String getID() {
		return "OfficeXP";
	}


	public String getName() {
		return "Office XP";
	}


	protected void initClassDefaults(UIDefaults table) {

		super.initClassDefaults(table);

		// Override the components we wanted painted differently.
		String packageName = "org.fife.plaf.OfficeXP.";
		Object[] uiDefaults = {
			"ButtonUI",			packageName + "OfficeXPButtonUI",
			"ComboBoxUI",			packageName + "OfficeXPComboBoxUI",
			"SeparatorUI",			packageName + "OfficeXPSeparatorUI",
			"PopupMenuSeparatorUI",	packageName + "OfficeXPSeparatorUI",
			"MenuUI",				packageName + "OfficeXPMenuUI",
			"MenuItemUI",			packageName + "OfficeXPMenuItemUI",
			"MenuBarUI",			packageName + "OfficeXPMenuBarUI",
			"PopupMenuUI",			packageName + "OfficeXPPopupMenuUI",
			"CheckBoxMenuItemUI",	packageName + "OfficeXPCheckBoxMenuItemUI",
			"RadioButtonMenuItemUI",	packageName + "OfficeXPRadioButtonMenuItemUI",
			"ToggleButtonUI",		packageName + "OfficeXPToggleButtonUI",
			"ToolBarUI",			packageName + "OfficeXPToolBarUI",
		};

		table.putDefaults(uiDefaults);

	}


	/**
	 * This is overridden because, by default, a Look and Feel evidently looks
	 * for certain icons in a "./icons/" directory.  We just want to use the
	 * icons used by the Windows Look and Feel; we don't want to supply our
	 * own.
	 */
	protected void initComponentDefaults(UIDefaults table)  {

		super.initComponentDefaults( table );

		// Some objects we'll be using below.
		Object popupMenuBorder = new UIDefaults.ProxyLazyValue("org.fife.plaf.OfficeXP.OfficeXPPopupMenuUI$XPPopupBorder");
		Object toolBarBorder = new UIDefaults.ProxyLazyValue("org.fife.plaf.OfficeXP.OfficeXPToolBarBorder");
		Object menuBarBorder = new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource$EmptyBorderUIResource",
													null,
													new Object[] { new Insets(0,0,0,0) });
		Object comboBoxBorder = new UIDefaults.ProxyLazyValue("org.fife.plaf.OfficeXP.OfficeXPComboBoxUI$ComboBorder",
													"getComboBorder",
													new Object[] { });

		Class windowsLnFClass = getClass().getSuperclass();

		Object[] defaults = {

			//"InternalFrame.icon", LookAndFeel.makeIcon(windowsLnFClass, "icons/JavaCup.gif"),
			"Tree.openIcon", LookAndFeel.makeIcon(windowsLnFClass, "icons/TreeOpen.gif"),
			"Tree.closedIcon", LookAndFeel.makeIcon(windowsLnFClass, "icons/TreeClosed.gif"),
			"Tree.leafIcon", LookAndFeel.makeIcon(windowsLnFClass, "icons/TreeLeaf.gif"),
			"OptionPane.errorIcon", LookAndFeel.makeIcon(windowsLnFClass, "icons/Error.gif"),
			"OptionPane.informationIcon", LookAndFeel.makeIcon(windowsLnFClass, "icons/Inform.gif"),
			"OptionPane.warningIcon", LookAndFeel.makeIcon(windowsLnFClass, "icons/Warn.gif"),
			"OptionPane.questionIcon", LookAndFeel.makeIcon(windowsLnFClass, "icons/Question.gif"),
			"FileView.directoryIcon", LookAndFeel.makeIcon(windowsLnFClass, "icons/Directory.gif"),
			"FileView.fileIcon", LookAndFeel.makeIcon(windowsLnFClass, "icons/File.gif"),
			"FileView.computerIcon", LookAndFeel.makeIcon(windowsLnFClass, "icons/Computer.gif"),
			"FileView.hardDriveIcon", LookAndFeel.makeIcon(windowsLnFClass, "icons/HardDrive.gif"),
			"FileView.floppyDriveIcon", LookAndFeel.makeIcon(windowsLnFClass, "icons/FloppyDrive.gif"),

			"ComboBox.border",						comboBoxBorder,

			"Menu.submenuPopupOffsetX",			new Integer(0),
			"Menu.submenuPopupOffsetY",			new Integer(0),

			"MenuBar.border",					menuBarBorder,

			"PopupMenu.border",					popupMenuBorder,

			"ToolBar.border",					toolBarBorder,

		};

		table.putDefaults(defaults);

		// Get initial Look and Feel-specific colors.
		colorManager.updateDefaultColors(table);

		// Create the painter that will be used to fill the icon/check mark
		// part of the menu item background.
		Color iconAreaColor = table.getColor("OfficeXPLnF.ChosenMenuColor");
		table.put("OfficeLnF.MenuItemIconAreaPaint", iconAreaColor);


		// If the locale is English, update several components' fonts to
		// Tahoma.
		OfficeXPLookAndFeel.possiblyUpdateFonts(table);

	}


	public void initialize() {
		colorManager = createColorManager();
		colorManager.install();
		super.initialize();
	}


	/**
	 * Updates some components to use Tahoma as their font.  This is because
	 * Windows Look and Feel does not set Tahoma for all components that use
	 * it, even as of 1.5.  Note that we only do this for the English locale,
	 * as some locales, such as Japanese, don't use Tahoma (as it does not
	 * support the language's characters).
	 *
	 * @param table The table in which to set the font values.
	 */
	public static void possiblyUpdateFonts(UIDefaults table) {

		// Check this way "just in case locale string changes..."
		Locale l = JComponent.getDefaultLocale();
		if (l.getLanguage().equals(Locale.ENGLISH.getLanguage())) {

			// Create our Tahoma font proxy value.
			Object plain = new Integer(java.awt.Font.PLAIN);
			Object tahoma = new UIDefaults.ProxyLazyValue(
						"javax.swing.plaf.FontUIResource",
						null,
						new Object[] {"Tahoma", plain, new Integer(11)});

			String javaVersion = System.getProperty("java.version");
			boolean is14 = javaVersion.indexOf("1.4")==0;

			// Some updates are only needed for 1.4.x.
			if (is14) {
				Object[] fonts = {
					"Button.font", tahoma,
					"CheckBox.font", tahoma,
					"CheckBoxMenuItem.font", tahoma,
					"ComboBox.font", tahoma,
					"Label.font", tahoma,
					"List.font", tahoma,
					"Menu.font", tahoma,
					"MenuBar.font", tahoma,
					"MenuItem.font", tahoma,
					"OptionPane.font", tahoma,
					"OptionPane.messageFont", tahoma,
					"OptionPane.buttonFont", tahoma,
					"Panel.font", tahoma,
					"PopupMenu.font", tahoma,
					"RadioButton.font", tahoma,
					"RadioButtonMenuItem.font", tahoma,
					"ScrollPane.font", tahoma,
					"Spinner.font", tahoma,
					"TabbedPane.font", tahoma,
					"Table.font", tahoma,
					"TableHeader.font", tahoma,
					"TitledBorder.font", tahoma,
					"ToggleButton.font", tahoma,
					"ToolBar.font", tahoma,
					"ToolTip.font", tahoma,
					"Tree.font", tahoma,
					"Viewport.font", tahoma,
				};
				table.putDefaults(fonts);
			} // End of if (is14).

			// Other updates are still needed even as of 1.5.0_02.
			Object[] fonts = {
				"EditorPane.font", tahoma,
				"TextArea.font", tahoma,
				"TextField.font", tahoma,
				"TextPane.font", tahoma,
			};
			table.putDefaults(fonts);

		} // End of if (locale==Locale.English);

	}


	public void uninitialize() {
		super.uninitialize();
		colorManager.uninstall();
		colorManager = null;
	}


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合久久久久网| 色综合av在线| 日本高清视频一区二区| 欧美一级在线视频| 亚洲免费av网站| 国产精品综合一区二区三区| 欧美性大战久久| 久久精品网站免费观看| 亚洲国产视频在线| 国产成人鲁色资源国产91色综 | 欧美男男青年gay1069videost| 337p日本欧洲亚洲大胆精品| 亚洲v中文字幕| 色噜噜久久综合| 国产日韩欧美不卡| 美腿丝袜一区二区三区| 在线精品视频小说1| 国产精品女人毛片| 国产一二精品视频| 日韩欧美一二三| 日韩国产欧美在线视频| 欧美日精品一区视频| 午夜精品福利在线| 91国偷自产一区二区三区观看| 国产偷国产偷精品高清尤物| 美女性感视频久久| 777久久久精品| 天堂va蜜桃一区二区三区| 91久久精品一区二区三| 亚洲免费av在线| 色综合色综合色综合| 亚洲欧美日韩系列| 色综合天天做天天爱| 亚洲一区二区三区四区在线免费观看 | 视频一区视频二区中文字幕| 欧洲一区在线电影| 一区二区三区产品免费精品久久75| 高清不卡一区二区| 国产精品乱码一区二区三区软件| 国产91在线观看丝袜| 中文幕一区二区三区久久蜜桃| 国产精品一区在线观看你懂的| 26uuu欧美| 丁香五精品蜜臀久久久久99网站| 日本一区二区在线不卡| 成人美女在线观看| 亚洲视频一区二区免费在线观看| 91蝌蚪porny成人天涯| 亚洲色图20p| 欧美日韩激情一区| 久久精品99久久久| 国产欧美一区二区三区沐欲| 成人福利视频网站| 亚洲综合免费观看高清完整版在线| 91高清视频在线| 丝袜美腿成人在线| 久久亚洲综合色一区二区三区| 激情av综合网| 六月丁香婷婷色狠狠久久| 日韩精品一区二区在线观看| 国产一区二区91| 亚洲欧美日韩国产手机在线| 欧美日本不卡视频| 国产成人免费视| 一区二区高清在线| 欧美成人一区二区三区片免费 | 成人aa视频在线观看| 亚洲制服丝袜在线| 日韩美一区二区三区| 成人激情动漫在线观看| 亚洲午夜激情网站| 久久久一区二区| 欧美性xxxxxxxx| 国产精品一区二区在线看| 亚洲精品菠萝久久久久久久| 欧美成人性战久久| 色哟哟国产精品免费观看| 日本aⅴ亚洲精品中文乱码| 欧美国产丝袜视频| 欧美酷刑日本凌虐凌虐| 成人午夜视频网站| 蜜桃久久精品一区二区| 亚洲三级免费电影| 久久久欧美精品sm网站| 欧美日韩一区视频| thepron国产精品| 精品午夜久久福利影院| 亚洲精品菠萝久久久久久久| 久久久久久久国产精品影院| 欧美理论电影在线| 99热精品国产| 国产精品一区专区| 日韩 欧美一区二区三区| 中文字幕日韩av资源站| 久久影院电视剧免费观看| 欧美猛男男办公室激情| 一本色道久久综合狠狠躁的推荐| 国产毛片精品视频| 蜜臀久久99精品久久久久久9| 一区二区三区资源| 中文字幕在线一区免费| www成人在线观看| 日韩欧美色综合| 欧美精品三级日韩久久| 在线观看视频一区二区 | 国产精品久久久久久久浪潮网站| 日韩欧美激情在线| 欧美精品电影在线播放| 欧美性猛片xxxx免费看久爱| 色婷婷久久99综合精品jk白丝| 丁香婷婷综合五月| 大胆欧美人体老妇| 国产成人亚洲综合a∨婷婷图片| 九九精品一区二区| 捆绑紧缚一区二区三区视频| 日本视频免费一区| 蜜桃视频一区二区| 麻豆国产精品一区二区三区| 免费高清成人在线| 日本sm残虐另类| 久久福利资源站| 激情综合亚洲精品| 国产精品一区二区你懂的| 国产精品自产自拍| 春色校园综合激情亚洲| 成人激情小说乱人伦| 99精品久久只有精品| 91免费国产视频网站| 色系网站成人免费| 欧美日韩亚洲综合在线| 欧美精品精品一区| 日韩精品一区二区三区三区免费| 精品日韩一区二区| 国产欧美日韩在线| 日韩毛片精品高清免费| 一区二区不卡在线播放 | 91电影在线观看| 欧美日韩日日夜夜| 91精品国产综合久久福利软件| 日韩三级电影网址| 欧美韩国日本综合| 亚洲精品成人精品456| 奇米影视一区二区三区小说| 国产在线一区二区| eeuss鲁片一区二区三区 | 亚洲综合一区二区| 蜜桃传媒麻豆第一区在线观看| 国产一区二区中文字幕| 成人美女视频在线看| 欧美在线高清视频| 日韩欧美激情在线| 亚洲色图制服诱惑| 奇米影视在线99精品| 丁香婷婷综合色啪| 欧美日韩国产经典色站一区二区三区| 欧美一区二区美女| 一区在线中文字幕| 奇米影视一区二区三区| www.欧美日韩| 日韩欧美一区电影| 亚洲欧美另类小说| 免费成人av在线播放| 99久久精品国产网站| 日韩三级高清在线| 一区二区三区免费| 国产精品99久久久久久宅男| 欧美三区在线视频| 国产精品毛片久久久久久| 日本欧美一区二区| 色哟哟在线观看一区二区三区| 精品粉嫩aⅴ一区二区三区四区| 一区二区三区不卡在线观看| 国精产品一区一区三区mba桃花| 欧美主播一区二区三区美女| 久久精品亚洲精品国产欧美kt∨ | 欧美日韩在线三级| 国产精品热久久久久夜色精品三区| 天天操天天干天天综合网| 99久久综合狠狠综合久久| 精品美女在线播放| 天天亚洲美女在线视频| 91蝌蚪porny| 国产精品护士白丝一区av| 看片的网站亚洲| 69久久夜色精品国产69蝌蚪网| 日本一区二区三级电影在线观看 | 日韩免费视频一区| 性做久久久久久| 91官网在线免费观看| 亚洲欧洲在线观看av| 国产精品亚洲专一区二区三区| 日韩一区二区影院| 日韩激情视频在线观看| 欧美三级蜜桃2在线观看| 一区二区三区日韩欧美精品| 91麻豆国产自产在线观看| 中文字幕久久午夜不卡| 国产不卡高清在线观看视频| 久久精品一区八戒影视| 国产成人午夜99999|