windowslookandfeel.java

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

JAVA
1,459
字号
		  "ctrl shift LEFT", DefaultEditorKit.selectionPreviousWordAction,	       "ctrl shift KP_LEFT", DefaultEditorKit.selectionPreviousWordAction,		 "ctrl shift RIGHT", DefaultEditorKit.selectionNextWordAction,	      "ctrl shift KP_RIGHT", DefaultEditorKit.selectionNextWordAction,			   "ctrl A", DefaultEditorKit.selectAllAction,			     "HOME", DefaultEditorKit.beginLineAction,			      "END", DefaultEditorKit.endLineAction,		       "shift HOME", DefaultEditorKit.selectionBeginLineAction,		        "shift END", DefaultEditorKit.selectionEndLineAction,		       "typed \010", DefaultEditorKit.deletePrevCharAction,                           "DELETE", DefaultEditorKit.deleteNextCharAction,                            "RIGHT", DefaultEditorKit.forwardAction,                             "LEFT", DefaultEditorKit.backwardAction,                         "KP_RIGHT", DefaultEditorKit.forwardAction,                          "KP_LEFT", DefaultEditorKit.backwardAction,			    "ENTER", JTextField.notifyAction,		  "ctrl BACK_SLASH", "unselect",                   "control shift O", "toggle-componentOrientation",                           "ESCAPE", "reset-field-edit",                               "UP", "increment",                            "KP_UP", "increment",                             "DOWN", "decrement",                          "KP_DOWN", "decrement",              }),	    // *** Panel	    "Panel.font", ControlFont,	    "Panel.background", ControlBackgroundColor,	    "Panel.foreground", WindowTextColor,	    // *** PasswordField	    "PasswordField.font", FixedControlFont,	    "PasswordField.background", WindowBackgroundColor,	    "PasswordField.foreground", WindowTextColor,	    "PasswordField.inactiveForeground", InactiveTextColor,	    "PasswordField.inactiveBackground", ControlBackgroundColor,	    "PasswordField.selectionBackground", SelectionBackgroundColor,	    "PasswordField.selectionForeground", SelectionTextColor,	    "PasswordField.caretForeground",WindowTextColor,	    // *** ProgressBar	    "ProgressBar.font", ControlFont,	    "ProgressBar.foreground",  SelectionBackgroundColor,	    "ProgressBar.background", ControlBackgroundColor,	    "ProgressBar.shadow", ControlShadowColor,	    "ProgressBar.highlight", ControlHighlightColor,	    "ProgressBar.selectionForeground", ControlBackgroundColor,	    "ProgressBar.selectionBackground", SelectionBackgroundColor,            "ProgressBar.cellLength", new Integer(7),            "ProgressBar.cellSpacing", new Integer(2),	    // *** RootPane.	    // These bindings are only enabled when there is a default	    // button set on the rootpane.	    "RootPane.defaultButtonWindowKeyBindings", new Object[] {		             "ENTER", "press",		    "released ENTER", "release",		        "ctrl ENTER", "press",	       "ctrl released ENTER", "release"	      },	    // *** ScrollBar.	    "ScrollBar.background", ScrollbarBackgroundColor,	    "ScrollBar.foreground", ControlBackgroundColor,	    "ScrollBar.track", white,	    "ScrollBar.trackForeground", ScrollbarBackgroundColor,	    "ScrollBar.trackHighlight", black,	    "ScrollBar.trackHighlightForeground", scrollBarTrackHighlight,	    "ScrollBar.thumb", ControlBackgroundColor,	    "ScrollBar.thumbHighlight", ControlHighlightColor,	    "ScrollBar.thumbDarkShadow", ControlDarkShadowColor,	    "ScrollBar.thumbShadow", ControlShadowColor,            "ScrollBar.width", scrollBarWidth,	    "ScrollBar.focusInputMap",	       new UIDefaults.LazyInputMap(new Object[] {		       "RIGHT", "positiveUnitIncrement",		    "KP_RIGHT", "positiveUnitIncrement",		        "DOWN", "positiveUnitIncrement",		     "KP_DOWN", "positiveUnitIncrement",		   "PAGE_DOWN", "positiveBlockIncrement",	      "ctrl PAGE_DOWN", "positiveBlockIncrement",		        "LEFT", "negativeUnitIncrement",		     "KP_LEFT", "negativeUnitIncrement",		          "UP", "negativeUnitIncrement",		       "KP_UP", "negativeUnitIncrement",		     "PAGE_UP", "negativeBlockIncrement",	        "ctrl PAGE_UP", "negativeBlockIncrement",		        "HOME", "minScroll",		         "END", "maxScroll"		 }),	    // *** ScrollPane.	    "ScrollPane.font", ControlFont,	    "ScrollPane.background", ControlBackgroundColor,	    "ScrollPane.foreground", ControlTextColor,	    "ScrollPane.ancestorInputMap",	       new UIDefaults.LazyInputMap(new Object[] {		           "RIGHT", "unitScrollRight",		        "KP_RIGHT", "unitScrollRight",		            "DOWN", "unitScrollDown",		         "KP_DOWN", "unitScrollDown",		            "LEFT", "unitScrollLeft",		         "KP_LEFT", "unitScrollLeft",		              "UP", "unitScrollUp",		           "KP_UP", "unitScrollUp",		         "PAGE_UP", "scrollUp",		       "PAGE_DOWN", "scrollDown",		    "ctrl PAGE_UP", "scrollLeft",		  "ctrl PAGE_DOWN", "scrollRight",		       "ctrl HOME", "scrollHome",		        "ctrl END", "scrollEnd"		 }),	    // *** Separator            "Separator.background", ControlHighlightColor,            "Separator.foreground", ControlShadowColor,	    // *** Slider.	    "Slider.foreground", ControlBackgroundColor,	    "Slider.background", ControlBackgroundColor,	    "Slider.highlight", ControlHighlightColor,	    "Slider.shadow", ControlShadowColor,	    "Slider.focus", ControlDarkShadowColor,	    "Slider.focusInputMap",	       new UIDefaults.LazyInputMap(new Object[] {		       "RIGHT", "positiveUnitIncrement",		    "KP_RIGHT", "positiveUnitIncrement",		        "DOWN", "negativeUnitIncrement",		     "KP_DOWN", "negativeUnitIncrement",		   "PAGE_DOWN", "negativeBlockIncrement",		        "LEFT", "negativeUnitIncrement",		     "KP_LEFT", "negativeUnitIncrement",		          "UP", "positiveUnitIncrement",		       "KP_UP", "positiveUnitIncrement",		     "PAGE_UP", "positiveBlockIncrement",		        "HOME", "minScroll",		         "END", "maxScroll"		 }),            // Spinner            "Spinner.font", FixedControlFont,            "Spinner.ancestorInputMap",	       new UIDefaults.LazyInputMap(new Object[] {                               "UP", "increment",                            "KP_UP", "increment",                             "DOWN", "decrement",                          "KP_DOWN", "decrement",               }),	    // *** SplitPane            "SplitPane.background", ControlBackgroundColor,            "SplitPane.highlight", ControlLightColor,            "SplitPane.shadow", ControlShadowColor,	    "SplitPane.darkShadow", ControlDarkShadowColor,	    "SplitPane.dividerSize", new Integer(5),	    "SplitPane.ancestorInputMap",	       new UIDefaults.LazyInputMap(new Object[] {		        "UP", "negativeIncrement",		      "DOWN", "positiveIncrement",		      "LEFT", "negativeIncrement",		     "RIGHT", "positiveIncrement",		     "KP_UP", "negativeIncrement",		   "KP_DOWN", "positiveIncrement",		   "KP_LEFT", "negativeIncrement",		  "KP_RIGHT", "positiveIncrement",		      "HOME", "selectMin",		       "END", "selectMax",		        "F8", "startResize",		        "F6", "toggleFocus",		  "ctrl TAB", "focusOutForward", 	    "ctrl shift TAB", "focusOutBackward"	       }),	    // *** TabbedPane            "TabbedPane.font", ControlFont,            "TabbedPane.background", ControlBackgroundColor,            "TabbedPane.foreground", ControlTextColor,            "TabbedPane.highlight", ControlHighlightColor,            "TabbedPane.light", ControlLightColor,            "TabbedPane.shadow", ControlShadowColor,            "TabbedPane.darkShadow", ControlDarkShadowColor,            "TabbedPane.focus", ControlTextColor,	    "TabbedPane.focusInputMap",	      new UIDefaults.LazyInputMap(new Object[] {		         "RIGHT", "navigateRight",	              "KP_RIGHT", "navigateRight",	                  "LEFT", "navigateLeft",	               "KP_LEFT", "navigateLeft",	                    "UP", "navigateUp",	                 "KP_UP", "navigateUp",	                  "DOWN", "navigateDown",	               "KP_DOWN", "navigateDown",	             "ctrl DOWN", "requestFocusForVisibleComponent",	          "ctrl KP_DOWN", "requestFocusForVisibleComponent",		}),	    "TabbedPane.ancestorInputMap",	       new UIDefaults.LazyInputMap(new Object[] {		   "ctrl PAGE_DOWN", "navigatePageDown",	             "ctrl PAGE_UP", "navigatePageUp",	                  "ctrl UP", "requestFocus",	               "ctrl KP_UP", "requestFocus",		 }),	    // *** Table	    "Table.font", ControlFont,	    "Table.foreground", ControlTextColor,  // cell text color	    "Table.background", WindowBackgroundColor,  // cell background color            "Table.highlight", ControlHighlightColor,            "Table.light", ControlLightColor,            "Table.shadow", ControlShadowColor,            "Table.darkShadow", ControlDarkShadowColor,	    "Table.selectionForeground", SelectionTextColor,	    "Table.selectionBackground", SelectionBackgroundColor,      	    "Table.gridColor", gray,  // grid line color	    "Table.focusCellBackground", WindowBackgroundColor,	    "Table.focusCellForeground", ControlTextColor,	    "Table.ancestorInputMap",	       new UIDefaults.LazyInputMap(new Object[] {                               "ctrl C", "copy",                               "ctrl V", "paste",                               "ctrl X", "cut",                                 "COPY", "copy",                                "PASTE", "paste",                                  "CUT", "cut",		                "RIGHT", "selectNextColumn",		             "KP_RIGHT", "selectNextColumn",		                 "LEFT", "selectPreviousColumn",		              "KP_LEFT", "selectPreviousColumn",		                 "DOWN", "selectNextRow",		              "KP_DOWN", "selectNextRow",		                   "UP", "selectPreviousRow",		                "KP_UP", "selectPreviousRow",		          "shift RIGHT", "selectNextColumnExtendSelection",		       "shift KP_RIGHT", "selectNextColumnExtendSelection",		           "shift LEFT", "selectPreviousColumnExtendSelection",		        "shift KP_LEFT", "selectPreviousColumnExtendSelection",		           "shift DOWN", "selectNextRowExtendSelection",		        "shift KP_DOWN", "selectNextRowExtendSelection",		             "shift UP", "selectPreviousRowExtendSelection",		          "shift KP_UP", "selectPreviousRowExtendSelection",		              "PAGE_UP", "scrollUpChangeSelection",		            "PAGE_DOWN", "scrollDownChangeSelection",		                 "HOME", "selectFirstColumn",		                  "END", "selectLastColumn",		        "shift PAGE_UP", "scrollUpExtendSelection",		      "shift PAGE_DOWN", "scrollDownExtendSelection",		           "shift HOME", "selectFirstColumnExtendSelection",		            "shift END", "selectLastColumnExtendSelection",		         "ctrl PAGE_UP", "scrollLeftChangeSelection",		       "ctrl PAGE_DOWN", "scrollRightChangeSelection",		            "ctrl HOME", "selectFirstRow",		             "ctrl END", "selectLastRow",		   "ctrl shift PAGE_UP", "scrollRightExtendSelection",		 "ctrl shift PAGE_DOWN", "scrollLeftExtendSelection",		      "ctrl shift HOME", "selectFirstRowExtendSelection",		       "ctrl shift END", "selectLastRowExtendSelection",		                  "TAB", "selectNextColumnCell",		            "shift TAB", "selectPreviousColumnCell",		                "ENTER", "selectNextRowCell",		          "shift ENTER", "selectPreviousRowCell",		               "ctrl A", "selectAll",		               "ESCAPE", "cancel",		                   "F2", "startEditing"		 }),	    "TableHeader.font", ControlFont,	    "TableHeader.foreground", ControlTextColor, // header text color	    "TableHeader.background", ControlBackgroundColor, // header background	    // *** TextArea	    "TextArea.font", FixedControlFont,	    "TextArea.background", WindowBackgroundColor,	    "TextArea.foreground", WindowTextColor,	    "TextArea.inactiveForeground", InactiveTextColor,	    "TextArea.selectionBackground", SelectionBackgroundColor,	    "TextArea.selectionForeground", SelectionTextColor,	    "TextArea.caretForeground", WindowTextColor,	    // *** TextField	    "TextField.font", ControlFont,	    "TextField.background", WindowBackgroundColor,	    "TextField.foreground", WindowTextColor,	    "TextField.shadow", ControlShadowColor,	    "TextField.darkShadow", ControlDarkShadowColor,	    "TextField.light", ControlLightColor,	    "TextField.highlight", ControlHighlightColor,	    "TextField.inactiveForeground", InactiveTextColor,	    "TextField.inactiveBackground", ControlBackgroundColor,	    "TextField.selectionBackground", SelectionBackgroundColor,	    "TextField.selectionForeground", SelectionTextColor,	    "TextField.caretForeground", WindowTextColor,

⌨️ 快捷键说明

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