metallookandfeel.java

来自「java jdk 1.4的源码」· Java 代码 · 共 1,404 行 · 第 1/5 页

JAVA
1,404
字号
	    "CheckBox.focusInputMap",	       new UIDefaults.LazyInputMap(new Object[] {		            "SPACE", "pressed",                   "released SPACE", "released"		 }),            "RadioButton.disabledText", getInactiveControlTextColor(),            "RadioButton.select", getControlShadow(),            "RadioButton.icon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getRadioButtonIcon"),            "RadioButton.font", controlTextValue,            "RadioButton.focus", getFocusColor(),	    "RadioButton.focusInputMap",	       new UIDefaults.LazyInputMap(new Object[] {                          "SPACE", "pressed",                 "released SPACE", "released"	      }),            "ToggleButton.select", getControlShadow(),            "ToggleButton.disabledText", getInactiveControlTextColor(),            "ToggleButton.focus", getFocusColor(),            "ToggleButton.border", toggleButtonBorder,            "ToggleButton.font", controlTextValue,	    "ToggleButton.focusInputMap",	      new UIDefaults.LazyInputMap(new Object[] {		            "SPACE", "pressed",                   "released SPACE", "released"	        }),            // File View             "FileView.directoryIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getTreeFolderIcon"),            "FileView.fileIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getTreeLeafIcon"),            "FileView.computerIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getTreeComputerIcon"),            "FileView.hardDriveIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getTreeHardDriveIcon"),            "FileView.floppyDriveIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getTreeFloppyDriveIcon"),            // File Chooser            "FileChooser.detailsViewIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getFileChooserDetailViewIcon"),            "FileChooser.homeFolderIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getFileChooserHomeFolderIcon"),            "FileChooser.listViewIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getFileChooserListViewIcon"),            "FileChooser.newFolderIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getFileChooserNewFolderIcon"),            "FileChooser.upFolderIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getFileChooserUpFolderIcon"),            "FileChooser.lookInLabelMnemonic", new Integer(KeyEvent.VK_I),            "FileChooser.fileNameLabelMnemonic", new Integer(KeyEvent.VK_N),            "FileChooser.filesOfTypeLabelMnemonic", new Integer(KeyEvent.VK_T),	    "FileChooser.ancestorInputMap", 	       new UIDefaults.LazyInputMap(new Object[] {		     "ESCAPE", "cancelSelection",		     "BACK_SPACE", "Go Up",		     "ENTER", "approveSelection"		 }),            // ToolTip            "ToolTip.font", systemTextValue,            "ToolTip.border", toolTipBorder,            "ToolTip.borderInactive", toolTipBorderInactive,            "ToolTip.backgroundInactive", table.get("control"),            "ToolTip.foregroundInactive", table.get("controlDkShadow"),            "ToolTip.hideAccelerator", Boolean.FALSE,             // Slider Defaults            "Slider.border", null,            "Slider.foreground", getPrimaryControlShadow(),            "Slider.focus", getFocusColor(),	    "Slider.focusInsets", sliderFocusInsets,            "Slider.trackWidth", new Integer( 7 ),            "Slider.majorTickLength", new Integer( 6 ),            "Slider.horizontalThumbIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getHorizontalSliderThumbIcon"),            "Slider.verticalThumbIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getVerticalSliderThumbIcon"),	    "Slider.focusInputMap",	       new UIDefaults.LazyInputMap(new Object[] {		       "RIGHT", "positiveUnitIncrement",		    "KP_RIGHT", "positiveUnitIncrement",		        "DOWN", "negativeUnitIncrement",		     "KP_DOWN", "negativeUnitIncrement",		   "PAGE_DOWN", "negativeBlockIncrement",	      "ctrl PAGE_DOWN", "negativeBlockIncrement",		        "LEFT", "negativeUnitIncrement",		     "KP_LEFT", "negativeUnitIncrement",		          "UP", "positiveUnitIncrement",		       "KP_UP", "positiveUnitIncrement",		     "PAGE_UP", "positiveBlockIncrement",                "ctrl PAGE_UP", "positiveBlockIncrement",		        "HOME", "minScroll",		         "END", "maxScroll"		 }),            // Progress Bar	    "ProgressBar.font", controlTextValue,            "ProgressBar.foreground", getPrimaryControlShadow(), 	    "ProgressBar.selectionBackground", getPrimaryControlDarkShadow(), 	    "ProgressBar.border", progressBarBorder,            "ProgressBar.cellSpacing", new Integer(0),            "ProgressBar.cellLength", new Integer(1),            // Combo Box            "ComboBox.background", table.get("control"),            "ComboBox.foreground", table.get("controlText"),            "ComboBox.selectionBackground", getPrimaryControlShadow(),            "ComboBox.selectionForeground", getControlTextColor(),            "ComboBox.font", controlTextValue,	    "ComboBox.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {		     "ESCAPE", "hidePopup",		    "PAGE_UP", "pageUpPassThrough",		  "PAGE_DOWN", "pageDownPassThrough",		       "HOME", "homePassThrough",		        "END", "endPassThrough",		       "DOWN", "selectNext",		    "KP_DOWN", "selectNext",		   "alt DOWN", "togglePopup",		"alt KP_DOWN", "togglePopup",		     "alt UP", "togglePopup",		  "alt KP_UP", "togglePopup",		      "SPACE", "spacePopup",		     "ENTER", "enterPressed",		         "UP", "selectPrevious",		      "KP_UP", "selectPrevious"	      }),            // Internal Frame Defaults            "InternalFrame.icon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getInternalFrameDefaultMenuIcon"),            "InternalFrame.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalBorders$InternalFrameBorder"),            "InternalFrame.optionDialogBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalBorders$OptionDialogBorder"),            "InternalFrame.paletteBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalBorders$PaletteBorder"),	    "InternalFrame.paletteTitleHeight", new Integer(11),	    "InternalFrame.paletteCloseIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalIconFactory$PaletteCloseIcon"),            "InternalFrame.closeIcon",                   new UIDefaults.ProxyLazyValue(				     "javax.swing.plaf.metal.MetalIconFactory", 				     "getInternalFrameCloseIcon",				     internalFrameIconArgs),            "InternalFrame.maximizeIcon",                   new UIDefaults.ProxyLazyValue(				     "javax.swing.plaf.metal.MetalIconFactory", 				     "getInternalFrameMaximizeIcon",				     internalFrameIconArgs),            "InternalFrame.iconifyIcon",                   new UIDefaults.ProxyLazyValue(				     "javax.swing.plaf.metal.MetalIconFactory", 				     "getInternalFrameMinimizeIcon",				     internalFrameIconArgs),            "InternalFrame.minimizeIcon",                   new UIDefaults.ProxyLazyValue(				     "javax.swing.plaf.metal.MetalIconFactory", 				     "getInternalFrameAltMaximizeIcon",				     internalFrameIconArgs),            "InternalFrame.titleFont",  windowTitleValue,	    "InternalFrame.windowBindings", null,	    // Internal Frame Auditory Cue Mappings            "InternalFrame.closeSound", "sounds/FrameClose.wav",            "InternalFrame.maximizeSound", "sounds/FrameMaximize.wav",            "InternalFrame.minimizeSound", "sounds/FrameMinimize.wav",            "InternalFrame.restoreDownSound", "sounds/FrameRestoreDown.wav",            "InternalFrame.restoreUpSound", "sounds/FrameRestoreUp.wav",            // Desktop Icon            "DesktopIcon.border", desktopIconBorder,            "DesktopIcon.font", controlTextValue,            "DesktopIcon.foreground", getControlTextColor(),            "DesktopIcon.background", getControl(),            "DesktopIcon.width", new Integer(160),	    "Desktop.ancestorInputMap",	       new UIDefaults.LazyInputMap(new Object[] {		 "ctrl F5", "restore", 		 "ctrl F4", "close",		 "ctrl F7", "move", 		 "ctrl F8", "resize",		   "RIGHT", "right",		"KP_RIGHT", "right",             "shift RIGHT", "shrinkRight",          "shift KP_RIGHT", "shrinkRight",		    "LEFT", "left",		 "KP_LEFT", "left",              "shift LEFT", "shrinkLeft",           "shift KP_LEFT", "shrinkLeft",		      "UP", "up",		   "KP_UP", "up",                "shift UP", "shrinkUp",             "shift KP_UP", "shrinkUp",		    "DOWN", "down",		 "KP_DOWN", "down",              "shift DOWN", "shrinkDown",           "shift KP_DOWN", "shrinkDown",		  "ESCAPE", "escape",		 "ctrl F9", "minimize", 		"ctrl F10", "maximize",		 "ctrl F6", "selectNextFrame",		"ctrl TAB", "selectNextFrame",	     "ctrl alt F6", "selectNextFrame",       "shift ctrl alt F6", "selectPreviousFrame",                "ctrl F12", "navigateNext",           "shift ctrl F12", "navigatePrevious"	      }),            // Titled Border            "TitledBorder.font", controlTextValue,            "TitledBorder.titleColor", getSystemTextColor(),            "TitledBorder.border", titledBorderBorder,            // Label            "Label.font", controlTextValue,            "Label.foreground", getSystemTextColor(),            "Label.disabledForeground", getInactiveSystemTextColor(),            // List            "List.font", controlTextValue,            "List.focusCellHighlightBorder", focusCellHighlightBorder,	    "List.focusInputMap",	       new UIDefaults.LazyInputMap(new Object[] {                           "ctrl C", "copy",                           "ctrl V", "paste",                           "ctrl X", "cut",                             "COPY", "copy",                            "PASTE", "paste",                              "CUT", "cut",		               "UP", "selectPreviousRow",		            "KP_UP", "selectPreviousRow",		         "shift UP", "selectPreviousRowExtendSelection",		      "shift KP_UP", "selectPreviousRowExtendSelection",		             "DOWN", "selectNextRow",		          "KP_DOWN", "selectNextRow",		       "shift DOWN", "selectNextRowExtendSelection",		    "shift KP_DOWN", "selectNextRowExtendSelection",		             "LEFT", "selectPreviousColumn",		          "KP_LEFT", "selectPreviousColumn",		       "shift LEFT", "selectPreviousColumnExtendSelection",		    "shift KP_LEFT", "selectPreviousColumnExtendSelection",		            "RIGHT", "selectNextColumn",		         "KP_RIGHT", "selectNextColumn",		      "shift RIGHT", "selectNextColumnExtendSelection",		   "shift KP_RIGHT", "selectNextColumnExtendSelection",		             "HOME", "selectFirstRow",		       "shift HOME", "selectFirstRowExtendSelection",		              "END", "selectLastRow",		        "shift END", "selectLastRowExtendSelection",		          "PAGE_UP", "scrollUp",		    "shift PAGE_UP", "scrollUpExtendSelection",		        "PAGE_DOWN", "scrollDown",		  "shift PAGE_DOWN", "scrollDownExtendSelection",		           "ctrl A", "selectAll",		       "ctrl SLASH", "selectAll",		  "ctrl BACK_SLASH", "clearSelection"		 }),            // ScrollBar            "ScrollBar.background", getControl(),            "ScrollBar.highlight", getControlHighlight(),            "ScrollBar.shadow", getControlShadow(),            "ScrollBar.darkShadow", getControlDarkShadow(),            "ScrollBar.thumb", getPrimaryControlShadow(),            "ScrollBar.thumbShadow", getPrimaryControlDarkShadow(),            "ScrollBar.thumbHighlight", getPrimaryControl(),            "ScrollBar.width", new Integer( 17 ),	    "ScrollBar.allowsAbsolutePositioning", Boolean.TRUE,	    "ScrollBar.focusInputMap",	       new UIDefaults.LazyInputMap(new Object[] {		       "RIGHT", "positiveUnitIncrement",		    "KP_RIGHT", "positiveUnitIncrement",		        "DOWN", "positiveUnitIncrement",		     "KP_DOWN", "positiveUnitIncrement",		   "PAGE_DOWN", "positiveBlockIncrement",		        "LEFT", "negativeUnitIncrement",		     "KP_LEFT", "negativeUnitIncrement",		          "UP", "negativeUnitIncrement",		       "KP_UP", "negativeUnitIncrement",		     "PAGE_UP", "negativeBlockIncrement",		        "HOME", "minScroll",		         "END", "maxScroll"		 }),	    // ScrollPane	    "ScrollPane.border", scrollPaneBorder,	    "ScrollPane.ancestorInputMap",	       new UIDefaults.LazyInputMap(new Object[] {		           "RIGHT", "unitScrollRight",		        "KP_RIGHT", "unitScrollRight",		            "DOWN", "unitScrollDown",		         "KP_DOWN", "unitScrollDown",

⌨️ 快捷键说明

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