windowslookandfeel.java

来自「JAVA 所有包」· Java 代码 · 共 1,352 行 · 第 1/5 页

JAVA
1,352
字号
						  new SwingLazyValue(							"javax.swing.plaf.BorderUIResource",							"getLoweredBevelBorderUIResource")),	    "FileChooser.listViewIcon",    new LazyWindowsIcon("fileChooserIcon ListView",							       "icons/ListView.gif"),	    "FileChooser.listViewWindowsStyle", Boolean.TRUE,	    "FileChooser.detailsViewIcon", new LazyWindowsIcon("fileChooserIcon DetailsView",							       "icons/DetailsView.gif"),	    "FileChooser.upFolderIcon",    new LazyWindowsIcon("fileChooserIcon UpFolder",							       "icons/UpFolder.gif"),	    "FileChooser.newFolderIcon",   new LazyWindowsIcon("fileChooserIcon NewFolder",							       "icons/NewFolder.gif"),	    "FileChooser.useSystemExtensionHiding", Boolean.TRUE,            "FileChooser.lookInLabelMnemonic", new Integer(KeyEvent.VK_I),            "FileChooser.fileNameLabelMnemonic", new Integer(KeyEvent.VK_N),            "FileChooser.filesOfTypeLabelMnemonic", new Integer(KeyEvent.VK_T),	    "FileChooser.usesSingleFilePane", Boolean.TRUE,	    "FileChooser.noPlacesBar", new DesktopProperty("win.comdlg.noPlacesBar",							   Boolean.FALSE, toolkit),	    "FileChooser.ancestorInputMap", 	       new UIDefaults.LazyInputMap(new Object[] {		     "ESCAPE", "cancelSelection",		     "F2", "editFileName",		     "F5", "refresh",		     "BACK_SPACE", "Go Up",		     "ENTER", "approveSelection",		"ctrl ENTER", "approveSelection"		 }),	    "FileView.directoryIcon", SwingUtilities2.makeIcon(getClass(),                                                               WindowsLookAndFeel.class,                                                               "icons/Directory.gif"),            "FileView.fileIcon", SwingUtilities2.makeIcon(getClass(),                                                          WindowsLookAndFeel.class,                                                          "icons/File.gif"),            "FileView.computerIcon", SwingUtilities2.makeIcon(getClass(),                                                              WindowsLookAndFeel.class,                                                              "icons/Computer.gif"),            "FileView.hardDriveIcon", SwingUtilities2.makeIcon(getClass(),                                                               WindowsLookAndFeel.class,                                                               "icons/HardDrive.gif"),            "FileView.floppyDriveIcon", SwingUtilities2.makeIcon(getClass(),                                                                 WindowsLookAndFeel.class,                                                                 "icons/FloppyDrive.gif"),            "FormattedTextField.font", ControlFont,            "InternalFrame.titleFont", WindowFont,            "InternalFrame.titlePaneHeight",   TitlePaneHeight,            "InternalFrame.titleButtonWidth",  TitleButtonWidth,            "InternalFrame.titleButtonHeight", TitleButtonHeight,            "InternalFrame.titleButtonToolTipsOn", hotTrackingOn,	    "InternalFrame.borderColor", ControlBackgroundColor,	    "InternalFrame.borderShadow", ControlShadowColor,	    "InternalFrame.borderDarkShadow", ControlDarkShadowColor,	    "InternalFrame.borderHighlight", ControlHighlightColor,	    "InternalFrame.borderLight", ControlLightColor,            "InternalFrame.borderWidth", WindowBorderWidth,            "InternalFrame.minimizeIconBackground", ControlBackgroundColor,            "InternalFrame.resizeIconHighlight", ControlLightColor,            "InternalFrame.resizeIconShadow", ControlShadowColor,            "InternalFrame.activeBorderColor", new DesktopProperty(                                                       "win.frame.activeBorderColor",                                                       table.get("windowBorder"),                                                       toolkit),            "InternalFrame.inactiveBorderColor", new DesktopProperty(                                                       "win.frame.inactiveBorderColor",                                                       table.get("windowBorder"),                                                       toolkit),	    "InternalFrame.activeTitleBackground", new DesktopProperty(                                                        "win.frame.activeCaptionColor",							 table.get("activeCaption"),                                                        toolkit),	    "InternalFrame.activeTitleGradient", new DesktopProperty(		                                        "win.frame.activeCaptionGradientColor",							 table.get("activeCaption"),                                                        toolkit),	    "InternalFrame.activeTitleForeground", new DesktopProperty(                                                        "win.frame.captionTextColor",							 table.get("activeCaptionText"),                                                        toolkit),	    "InternalFrame.inactiveTitleBackground", new DesktopProperty(                                                        "win.frame.inactiveCaptionColor",							 table.get("inactiveCaption"),                                                        toolkit),	    "InternalFrame.inactiveTitleGradient", new DesktopProperty(                                                        "win.frame.inactiveCaptionGradientColor",							 table.get("inactiveCaption"),                                                        toolkit),	    "InternalFrame.inactiveTitleForeground", new DesktopProperty(                                                        "win.frame.inactiveCaptionTextColor",							 table.get("inactiveCaptionText"),                                                        toolkit),                        "InternalFrame.maximizeIcon",                 WindowsIconFactory.createFrameMaximizeIcon(),            "InternalFrame.minimizeIcon",                 WindowsIconFactory.createFrameMinimizeIcon(),            "InternalFrame.iconifyIcon",                 WindowsIconFactory.createFrameIconifyIcon(),            "InternalFrame.closeIcon",                 WindowsIconFactory.createFrameCloseIcon(),            "InternalFrame.icon",		new SwingLazyValue(	"com.sun.java.swing.plaf.windows.WindowsInternalFrameTitlePane$ScalableIconUIResource",		    // The constructor takes one arg: an array of UIDefaults.LazyValue		    // representing the icons		    new Object[][] { {			SwingUtilities2.makeIcon(getClass(), BasicLookAndFeel.class, "icons/JavaCup16.png"),			SwingUtilities2.makeIcon(getClass(), WindowsLookAndFeel.class, "icons/JavaCup32.png")		    } }),	    // Internal Frame Auditory Cue Mappings            "InternalFrame.closeSound", "win.sound.close",            "InternalFrame.maximizeSound", "win.sound.maximize",            "InternalFrame.minimizeSound", "win.sound.minimize",            "InternalFrame.restoreDownSound", "win.sound.restoreDown",            "InternalFrame.restoreUpSound", "win.sound.restoreUp",	    "InternalFrame.windowBindings", new Object[] {		"shift ESCAPE", "showSystemMenu",		  "ctrl SPACE", "showSystemMenu",		      "ESCAPE", "hideSystemMenu"},	    	    // Label	    "Label.font", ControlFont,	    "Label.background", ControlBackgroundColor,            "Label.foreground", WindowTextColor,	    "Label.disabledForeground", InactiveTextColor,	    "Label.disabledShadow", ControlHighlightColor,	    // List.	    "List.font", ControlFont,	    "List.background", WindowBackgroundColor,	    "List.foreground", WindowTextColor,	    "List.selectionBackground", SelectionBackgroundColor,	    "List.selectionForeground", SelectionTextColor,	    "List.lockToPositionOnScroll", Boolean.TRUE,	    "List.focusInputMap",	       new UIDefaults.LazyInputMap(new Object[] {                           "ctrl C", "copy",                           "ctrl V", "paste",                           "ctrl X", "cut",                             "COPY", "copy",                            "PASTE", "paste",                              "CUT", "cut",                   "control INSERT", "copy",                     "shift INSERT", "paste",                     "shift DELETE", "cut",		               "UP", "selectPreviousRow",		            "KP_UP", "selectPreviousRow",		         "shift UP", "selectPreviousRowExtendSelection",		      "shift KP_UP", "selectPreviousRowExtendSelection",                    "ctrl shift UP", "selectPreviousRowExtendSelection",                 "ctrl shift KP_UP", "selectPreviousRowExtendSelection",                          "ctrl UP", "selectPreviousRowChangeLead",                       "ctrl KP_UP", "selectPreviousRowChangeLead",		             "DOWN", "selectNextRow",		          "KP_DOWN", "selectNextRow",		       "shift DOWN", "selectNextRowExtendSelection",		    "shift KP_DOWN", "selectNextRowExtendSelection",                  "ctrl shift DOWN", "selectNextRowExtendSelection",               "ctrl shift KP_DOWN", "selectNextRowExtendSelection",                        "ctrl DOWN", "selectNextRowChangeLead",                     "ctrl KP_DOWN", "selectNextRowChangeLead",		             "LEFT", "selectPreviousColumn",		          "KP_LEFT", "selectPreviousColumn",		       "shift LEFT", "selectPreviousColumnExtendSelection",		    "shift KP_LEFT", "selectPreviousColumnExtendSelection",                  "ctrl shift LEFT", "selectPreviousColumnExtendSelection",               "ctrl shift KP_LEFT", "selectPreviousColumnExtendSelection",                        "ctrl LEFT", "selectPreviousColumnChangeLead",                     "ctrl KP_LEFT", "selectPreviousColumnChangeLead",		            "RIGHT", "selectNextColumn",		         "KP_RIGHT", "selectNextColumn",		      "shift RIGHT", "selectNextColumnExtendSelection",		   "shift KP_RIGHT", "selectNextColumnExtendSelection",                 "ctrl shift RIGHT", "selectNextColumnExtendSelection",              "ctrl shift KP_RIGHT", "selectNextColumnExtendSelection",                       "ctrl RIGHT", "selectNextColumnChangeLead",                    "ctrl KP_RIGHT", "selectNextColumnChangeLead",		             "HOME", "selectFirstRow",		       "shift HOME", "selectFirstRowExtendSelection",                  "ctrl shift HOME", "selectFirstRowExtendSelection",                        "ctrl HOME", "selectFirstRowChangeLead",		              "END", "selectLastRow",		        "shift END", "selectLastRowExtendSelection",                   "ctrl shift END", "selectLastRowExtendSelection",                         "ctrl END", "selectLastRowChangeLead",		          "PAGE_UP", "scrollUp",		    "shift PAGE_UP", "scrollUpExtendSelection",               "ctrl shift PAGE_UP", "scrollUpExtendSelection",                     "ctrl PAGE_UP", "scrollUpChangeLead",		        "PAGE_DOWN", "scrollDown",		  "shift PAGE_DOWN", "scrollDownExtendSelection",             "ctrl shift PAGE_DOWN", "scrollDownExtendSelection",                   "ctrl PAGE_DOWN", "scrollDownChangeLead",		           "ctrl A", "selectAll",		       "ctrl SLASH", "selectAll",		  "ctrl BACK_SLASH", "clearSelection",                            "SPACE", "addToSelection",                       "ctrl SPACE", "toggleAndAnchor",                      "shift SPACE", "extendTo",                 "ctrl shift SPACE", "moveSelectionTo"		 }),	    // PopupMenu	    "PopupMenu.font", MenuFont,	    "PopupMenu.background", MenuBackgroundColor,	    "PopupMenu.foreground", MenuTextColor,            "PopupMenu.popupSound", "win.sound.menuPopup",	    // Menus            "Menu.font", MenuFont,            "Menu.foreground", MenuTextColor,            "Menu.background", MenuBackgroundColor,	    "Menu.useMenuBarBackgroundForTopLevel", Boolean.TRUE,            "Menu.selectionForeground", SelectionTextColor,            "Menu.selectionBackground", SelectionBackgroundColor,	    "Menu.acceleratorForeground", MenuTextColor,	    "Menu.acceleratorSelectionForeground", SelectionTextColor,	    "Menu.menuPopupOffsetX", new Integer(0),	    "Menu.menuPopupOffsetY", new Integer(0),	    "Menu.submenuPopupOffsetX", new Integer(-4),	    "Menu.submenuPopupOffsetY", new Integer(-3),            "Menu.crossMenuMnemonic", Boolean.FALSE,	    // MenuBar.	    "MenuBar.font", MenuFont,	    "MenuBar.background", new XPValue(MenuBarBackgroundColor,					      MenuBackgroundColor),	    "MenuBar.foreground", MenuTextColor,	    "MenuBar.shadow", ControlShadowColor,	    "MenuBar.highlight", ControlHighlightColor,	    "MenuBar.height", menuBarHeight,	    "MenuBar.rolloverEnabled", hotTrackingOn,	    "MenuBar.windowBindings", new Object[] {		"F10", "takeFocus" },            "MenuItem.font", MenuFont,            "MenuItem.acceleratorFont", MenuFont,            "MenuItem.foreground", MenuTextColor,            "MenuItem.background", MenuBackgroundColor,            "MenuItem.selectionForeground", SelectionTextColor,            "MenuItem.selectionBackground", SelectionBackgroundColor,	    "MenuItem.disabledForeground", InactiveTextColor,	    "MenuItem.acceleratorForeground", MenuTextColor,	    "MenuItem.acceleratorSelectionForeground", SelectionTextColor,	    "MenuItem.acceleratorDelimiter", menuItemAcceleratorDelimiter,	         // Menu Item Auditory Cue Mapping	    "MenuItem.commandSound", "win.sound.menuCommand",             // indicates that keyboard navigation won't skip disabled menu items            "MenuItem.disabledAreNavigable", Boolean.TRUE,	    "RadioButton.font", ControlFont,            "RadioButton.interiorBackground", WindowBackgroundColor,            "RadioButton.background", ControlBackgroundColor,            "RadioButton.foreground", WindowTextColor,            "RadioButton.shadow", ControlShadowColor,            "RadioButton.darkShadow", ControlDarkShadowColor,            "RadioButton.light", ControlLightColor,	    "RadioButton.highlight", ControlHighlightColor,            "RadioButton.focus", black,	    "RadioButton.focusInputMap",	       new UIDefaults.LazyInputMap(new Object[] {                          "SPACE", "pressed",                 "released SPACE", "released" 	      }),            // margin is 2 all the way around, BasicBorders.RadioButtonBorder            // is 2 all the way around too.            "RadioButton.totalInsets", new Insets(4, 4, 4, 4),

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?