motiflookandfeel.java

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

JAVA
1,270
字号
            "Desktop.background", table.get("desktop"),	    "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"	      }),            "Panel.background", table.get("control"),            "Panel.foreground", table.get("textText"),            "Panel.font", dialogPlain12,            "ProgressBar.font", dialogPlain12,            "ProgressBar.foreground", controlDarker,            "ProgressBar.background", table.get("control"), 	    "ProgressBar.selectionForeground", table.get("control"),	    "ProgressBar.selectionBackground", table.get("controlText"),	    "ProgressBar.border", loweredBevelBorder,            "ProgressBar.cellLength", new Integer(6),            "ProgressBar.cellSpacing", new Integer(0),	    // Buttons	    "Button.margin", new InsetsUIResource(2, 4, 2, 4),            "Button.border", buttonBorder,            "Button.background", table.get("control"),            "Button.foreground", table.get("controlText"),            "Button.select", table.get("controlLightShadow"),            "Button.font", dialogPlain12,            "Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {                          "SPACE", "pressed",                 "released SPACE", "released"               }),	    "CheckBox.textIconGap", new Integer(8),	    "CheckBox.margin", new InsetsUIResource(4, 2, 4, 2),            "CheckBox.icon", checkBoxIcon,            "CheckBox.focus", table.get("activeCaptionBorder"),	    "CheckBox.focusInputMap",	       new UIDefaults.LazyInputMap(new Object[] {		            "SPACE", "pressed",                   "released SPACE", "released" 		 }),	    "RadioButton.margin", new InsetsUIResource(4, 2, 4, 2),	    "RadioButton.textIconGap", new Integer(8),            "RadioButton.background", table.get("control"),            "RadioButton.foreground", table.get("controlText"),            "RadioButton.icon", radioButtonIcon,            "RadioButton.focus", table.get("activeCaptionBorder"),            "RadioButton.icon", radioButtonIcon,	    "RadioButton.focusInputMap",	       new UIDefaults.LazyInputMap(new Object[] {                          "SPACE", "pressed",                 "released SPACE", "released" 	      }),            "ToggleButton.border", toggleButtonBorder,            "ToggleButton.background", table.get("control"),            "ToggleButton.foreground", table.get("controlText"),            "ToggleButton.focus", table.get("controlText"),            "ToggleButton.select", table.get("controlLightShadow"),	    "ToggleButton.focusInputMap",	      new UIDefaults.LazyInputMap(new Object[] {		            "SPACE", "pressed",                   "released SPACE", "released" 	        }),	    // Menus            "Menu.border", menuMarginBorder,            "Menu.font", dialogPlain12,            "Menu.acceleratorFont", dialogPlain12,            "Menu.acceleratorSelectionForeground", menuItemPressedForeground,            "Menu.foreground", table.get("menuText"),            "Menu.background", table.get("menu"),            "Menu.selectionForeground", menuItemPressedForeground,            "Menu.selectionBackground", menuItemPressedBackground,            "Menu.checkIcon", menuItemCheckIcon,            "Menu.arrowIcon", menuArrowIcon,	    "Menu.menuPopupOffsetX", new Integer(0),	    "Menu.menuPopupOffsetY", new Integer(0),	    "Menu.submenuPopupOffsetX", new Integer(-2),	    "Menu.submenuPopupOffsetY", new Integer(3),            "Menu.shortcutKeys", new int[] {KeyEvent.ALT_MASK,                                            KeyEvent.META_MASK},            "MenuBar.border", menuBarBorder,            "MenuBar.background", table.get("menu"),            "MenuBar.foreground", table.get("menuText"),            "MenuBar.font", dialogPlain12,	    "MenuBar.windowBindings", new Object[] {		"F10", "takeFocus" },            "MenuItem.border", menuMarginBorder,            "MenuItem.font", dialogPlain12,            "MenuItem.acceleratorFont", dialogPlain12,            "MenuItem.acceleratorSelectionForeground", menuItemPressedForeground,            "MenuItem.foreground", table.get("menuText"),            "MenuItem.background", table.get("menu"),            "MenuItem.selectionForeground", menuItemPressedForeground,            "MenuItem.selectionBackground", menuItemPressedBackground,            "MenuItem.checkIcon", menuItemCheckIcon,            "MenuItem.arrowIcon", menuItemArrowIcon,            "RadioButtonMenuItem.border", menuMarginBorder,            "RadioButtonMenuItem.font", dialogPlain12,            "RadioButtonMenuItem.acceleratorFont", dialogPlain12,            "RadioButtonMenuItem.acceleratorSelectionForeground", menuItemPressedForeground,            "RadioButtonMenuItem.foreground", table.get("menuText"),            "RadioButtonMenuItem.background", table.get("menu"),            "RadioButtonMenuItem.selectionForeground", menuItemPressedForeground,            "RadioButtonMenuItem.selectionBackground", menuItemPressedBackground,            "RadioButtonMenuItem.checkIcon", radioButtonIcon,            "RadioButtonMenuItem.arrowIcon", menuItemArrowIcon,            "CheckBoxMenuItem.border", menuMarginBorder,            "CheckBoxMenuItem.font", dialogPlain12,            "CheckBoxMenuItem.acceleratorFont", dialogPlain12,            "CheckBoxMenuItem.acceleratorSelectionForeground", menuItemPressedForeground,            "CheckBoxMenuItem.foreground", table.get("menuText"),            "CheckBoxMenuItem.background", table.get("menu"),            "CheckBoxMenuItem.selectionForeground", menuItemPressedForeground,            "CheckBoxMenuItem.selectionBackground", menuItemPressedBackground,            "CheckBoxMenuItem.checkIcon", checkBoxIcon,            "CheckBoxMenuItem.arrowIcon", menuItemArrowIcon,            "PopupMenu.background", table.get("menu"),            "PopupMenu.border", popupMenuBorder,                        "PopupMenu.foreground", table.get("menuText"),            "PopupMenu.font", dialogPlain12,            "PopupMenu.consumeEventOnClose", Boolean.TRUE,            "Label.font", dialogPlain12,            "Label.background", table.get("control"),            "Label.foreground", table.get("controlText"),            "Separator.shadow", table.get("controlShadow"),          // DEPRECATED - DO NOT USE!            "Separator.highlight", table.get("controlLtHighlight"),  // DEPRECATED - DO NOT USE!            "Separator.background", table.get("controlLtHighlight"),            "Separator.foreground", table.get("controlShadow"),            "List.focusCellHighlightBorder", focusCellHighlightBorder,	    "List.focusInputMap",	       new UIDefaults.LazyInputMap(new Object[] {			     "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"		 }),            "DesktopIcon.icon", SwingUtilities2.makeIcon(getClass(),                                                         MotifLookAndFeel.class,                                                         "icons/DesktopIcon.gif"),	    "DesktopIcon.border", null,	    // These are a little odd, MotifInternalFrameUI isntalls em!	    "DesktopIcon.windowBindings", new Object[]	      { "ESCAPE", "hideSystemMenu" },	    "InternalFrame.activeTitleBackground", table.get("activeCaptionBorder"),	    "InternalFrame.inactiveTitleBackground", table.get("inactiveCaptionBorder"),	    "InternalFrame.windowBindings", new Object[] {		"shift ESCAPE", "showSystemMenu",		  "ctrl SPACE", "showSystemMenu",	              "ESCAPE", "hideSystemMenu"	    },            "ScrollBar.background", scrollBarTrack,            "ScrollBar.foreground", table.get("control"),            "ScrollBar.track", scrollBarTrack,            "ScrollBar.trackHighlight", table.get("controlDkShadow"),            "ScrollBar.thumb", table.get("control"),

⌨️ 快捷键说明

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