windowslookandfeel.java

来自「JAVA的一些源码 JAVA2 STANDARD EDITION DEVELO」· Java 代码 · 共 1,348 行 · 第 1/5 页

JAVA
1,348
字号
	    "PasswordField.disabledBackground", DisabledTextBackground, // for disabled	    "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.ancestorInputMap",	       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", ControlHighlightColor,            "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.tabsOverlapBorder", new XPValue(Boolean.TRUE, Boolean.FALSE),	    "TabbedPane.tabInsets",         new XPValue(new InsetsUIResource(1, 4, 1, 4),							new InsetsUIResource(0, 4, 1, 4)),	    "TabbedPane.tabAreaInsets",     new XPValue(new InsetsUIResource(3, 2, 2, 2),							new InsetsUIResource(3, 2, 0, 2)),            "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 TAB", "navigateNext",                   "ctrl shift TAB", "navigatePrevious",		   "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",                          "shift RIGHT", "selectNextColumnExtendSelection",                       "shift KP_RIGHT", "selectNextColumnExtendSelection",                     "ctrl shift RIGHT", "selectNextColumnExtendSelection",                  "ctrl shift KP_RIGHT", "selectNextColumnExtendSelection",                           "ctrl RIGHT", "selectNextColumnChangeLead",                        "ctrl KP_RIGHT", "selectNextColumnChangeLead",                                 "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",                                 "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",                                   "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",                                 "HOME", "selectFirstColumn",                           "shift HOME", "selectFirstColumnExtendSelection",                      "ctrl shift HOME", "selectFirstRowExtendSelection",                            "ctrl HOME", "selectFirstRow",                                  "END", "selectLastColumn",                            "shift END", "selectLastColumnExtendSelection",                       "ctrl shift END", "selectLastRowExtendSelection",                             "ctrl END", "selectLastRow",                              "PAGE_UP", "scrollUpChangeSelection",                        "shift PAGE_UP", "scrollUpExtendSelection",                   "ctrl shift PAGE_UP", "scrollLeftExtendSelection",                         "ctrl PAGE_UP", "scrollLeftChangeSelection",                            "PAGE_DOWN", "scrollDownChangeSelection",                      "shift PAGE_DOWN", "scrollDownExtendSelection",                 "ctrl shift PAGE_DOWN", "scrollRightExtendSelection",                       "ctrl PAGE_DOWN", "scrollRightChangeSelection",                                  "TAB", "selectNextColumnCell",                            "shift TAB", "selectPreviousColumnCell",                                "ENTER", "selectNextRowCell",                          "shift ENTER", "selectPreviousRowCell",                               "ctrl A", "selectAll",                           "ctrl SLASH", "selectAll",                      "ctrl BACK_SLASH", "clearSelection",                               "ESCAPE", "cancel",                                   "F2", "startEditing",                                "SPACE", "addToSelection",                           "ctrl SPACE", "toggleAndAnchor",                          "shift SPACE", "extendTo",                     "ctrl shift SPACE", "moveSelectionTo"		 }),	    "TableHeader.font", ControlFont,	    "TableHeader.foreground", ControlTextColor, // header text color	    "TableHeader.background", ControlBackgroundColor, // header background	    // *** TextArea	    "TextArea.font", FixedControlFont,	    "TextArea.background", WindowBackgroundColor,	    "TextArea.foreground", WindowTextColor,	    "

⌨️ 快捷键说明

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