⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 metallookandfeel.java

📁 JAVA的一些源码 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
            "Menu.selectionBackground", menuSelectedBackground,            "Menu.disabledForeground", menuDisabledForeground,            "Menu.acceleratorFont", subTextValue,            "Menu.acceleratorForeground", acceleratorForeground,            "Menu.acceleratorSelectionForeground", acceleratorSelectedForeground,            "Menu.checkIcon", new SwingLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getMenuItemCheckIcon"),            "Menu.arrowIcon", new SwingLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getMenuArrowIcon"),            // Menu Item            "MenuItem.border", menuItemBorder,            "MenuItem.borderPainted", Boolean.TRUE,            "MenuItem.font", menuTextValue,            "MenuItem.selectionForeground", menuSelectedForeground,            "MenuItem.selectionBackground", menuSelectedBackground,            "MenuItem.disabledForeground", menuDisabledForeground,            "MenuItem.acceleratorFont", subTextValue,            "MenuItem.acceleratorForeground", acceleratorForeground,            "MenuItem.acceleratorSelectionForeground", acceleratorSelectedForeground,	    "MenuItem.acceleratorDelimiter", menuItemAcceleratorDelimiter,            "MenuItem.checkIcon", new SwingLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getMenuItemCheckIcon"),            "MenuItem.arrowIcon", new SwingLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getMenuItemArrowIcon"),	         // Menu Item Auditory Cue Mapping	    "MenuItem.commandSound", "sounds/MenuItemCommand.wav",	    // OptionPane.	    "OptionPane.windowBindings", new Object[] {		"ESCAPE", "close" },	    // Option Pane Auditory Cue Mappings            "OptionPane.informationSound", "sounds/OptionPaneInformation.wav",            "OptionPane.warningSound", "sounds/OptionPaneWarning.wav",            "OptionPane.errorSound", "sounds/OptionPaneError.wav",            "OptionPane.questionSound", "sounds/OptionPaneQuestion.wav",            // Option Pane Special Dialog Colors, used when MetalRootPaneUI            // is providing window manipulation widgets.            "OptionPane.errorDialog.border.background",                        new ColorUIResource(153, 51, 51),            "OptionPane.errorDialog.titlePane.foreground",                        new ColorUIResource(51, 0, 0),            "OptionPane.errorDialog.titlePane.background",                        new ColorUIResource(255, 153, 153),            "OptionPane.errorDialog.titlePane.shadow",                        new ColorUIResource(204, 102, 102),            "OptionPane.questionDialog.border.background",                        new ColorUIResource(51, 102, 51),            "OptionPane.questionDialog.titlePane.foreground",                        new ColorUIResource(0, 51, 0),            "OptionPane.questionDialog.titlePane.background",                        new ColorUIResource(153, 204, 153),            "OptionPane.questionDialog.titlePane.shadow",                        new ColorUIResource(102, 153, 102),            "OptionPane.warningDialog.border.background",                        new ColorUIResource(153, 102, 51),            "OptionPane.warningDialog.titlePane.foreground",                        new ColorUIResource(102, 51, 0),            "OptionPane.warningDialog.titlePane.background",                        new ColorUIResource(255, 204, 153),            "OptionPane.warningDialog.titlePane.shadow",                        new ColorUIResource(204, 153, 102),            // OptionPane fonts are defined below                       // Separator            "Separator.background", getSeparatorBackground(),            "Separator.foreground", getSeparatorForeground(),            // Popup Menu            "PopupMenu.border", popupMenuBorder,          	         // Popup Menu Auditory Cue Mappings            "PopupMenu.popupSound", "sounds/PopupMenuPopup.wav",            "PopupMenu.font", menuTextValue,            // CB & RB Menu Item            "CheckBoxMenuItem.border", menuItemBorder,            "CheckBoxMenuItem.borderPainted", Boolean.TRUE,            "CheckBoxMenuItem.font", menuTextValue,            "CheckBoxMenuItem.selectionForeground", menuSelectedForeground,            "CheckBoxMenuItem.selectionBackground", menuSelectedBackground,            "CheckBoxMenuItem.disabledForeground", menuDisabledForeground,            "CheckBoxMenuItem.acceleratorFont", subTextValue,            "CheckBoxMenuItem.acceleratorForeground", acceleratorForeground,            "CheckBoxMenuItem.acceleratorSelectionForeground", acceleratorSelectedForeground,            "CheckBoxMenuItem.checkIcon", new SwingLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getCheckBoxMenuItemIcon"),            "CheckBoxMenuItem.arrowIcon", new SwingLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getMenuItemArrowIcon"),	    "CheckBoxMenuItem.commandSound", "sounds/MenuItemCommand.wav",            "RadioButtonMenuItem.border", menuItemBorder,            "RadioButtonMenuItem.borderPainted", Boolean.TRUE,            "RadioButtonMenuItem.font", menuTextValue,            "RadioButtonMenuItem.selectionForeground", menuSelectedForeground,            "RadioButtonMenuItem.selectionBackground", menuSelectedBackground,            "RadioButtonMenuItem.disabledForeground", menuDisabledForeground,            "RadioButtonMenuItem.acceleratorFont", subTextValue,            "RadioButtonMenuItem.acceleratorForeground", acceleratorForeground,            "RadioButtonMenuItem.acceleratorSelectionForeground", acceleratorSelectedForeground,            "RadioButtonMenuItem.checkIcon", new SwingLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getRadioButtonMenuItemIcon"),            "RadioButtonMenuItem.arrowIcon", new SwingLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getMenuItemArrowIcon"),	    "RadioButtonMenuItem.commandSound", "sounds/MenuItemCommand.wav",            "Spinner.ancestorInputMap",	       new UIDefaults.LazyInputMap(new Object[] {                               "UP", "increment",                            "KP_UP", "increment",                             "DOWN", "decrement",                          "KP_DOWN", "decrement",               }),	    "Spinner.arrowButtonInsets", zeroInsets,	    "Spinner.border", textFieldBorder,	    "Spinner.arrowButtonBorder", buttonBorder,            "Spinner.font", controlTextValue,	    // SplitPane	    "SplitPane.dividerSize", new Integer(10),	    "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"		 }),            "SplitPane.centerOneTouchButtons", Boolean.FALSE,            "SplitPane.dividerFocusColor", primaryControl,            // Tree            // Tree.font was mapped to system font pre 1.4.1            "Tree.font", userTextValue,            "Tree.textBackground", getWindowBackground(),            "Tree.selectionBorderColor", focusColor,            "Tree.openIcon", new SwingLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getTreeFolderIcon"),            "Tree.closedIcon", new SwingLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getTreeFolderIcon"),            "Tree.leafIcon", new SwingLazyValue("javax.swing.plaf.metal.MetalIconFactory", "getTreeLeafIcon"),            "Tree.expandedIcon", new SwingLazyValue(				     "javax.swing.plaf.metal.MetalIconFactory", 				     "getTreeControlIcon",				     new Object[] {Boolean.valueOf(MetalIconFactory.DARK)}),            "Tree.collapsedIcon", new SwingLazyValue(				     "javax.swing.plaf.metal.MetalIconFactory", 				     "getTreeControlIcon",				     new Object[] {Boolean.valueOf( MetalIconFactory.LIGHT )}),            "Tree.line", primaryControl, // horiz lines            "Tree.hash", primaryControl,  // legs	    "Tree.rowHeight", zero,	    "Tree.focusInputMap",	       new UIDefaults.LazyInputMap(new Object[] {                                    "ADD", "expand",                               "SUBTRACT", "collapse",                                 "ctrl C", "copy",                                 "ctrl V", "paste",                                 "ctrl X", "cut",                                   "COPY", "copy",                                  "PASTE", "paste",                                    "CUT", "cut",		                     "UP", "selectPrevious",		                  "KP_UP", "selectPrevious",		               "shift UP", "selectPreviousExtendSelection",		            "shift KP_UP", "selectPreviousExtendSelection",                          "ctrl shift UP", "selectPreviousExtendSelection",                       "ctrl shift KP_UP", "selectPreviousExtendSelection",                                "ctrl UP", "selectPreviousChangeLead",                             "ctrl KP_UP", "selectPreviousChangeLead",		                   "DOWN", "selectNext",		                "KP_DOWN", "selectNext",		             "shift DOWN", "selectNextExtendSelection",		          "shift KP_DOWN", "selectNextExtendSelection",                        "ctrl shift DOWN", "selectNextExtendSelection",                     "ctrl shift KP_DOWN", "selectNextExtendSelection",                              "ctrl DOWN", "selectNextChangeLead",                           "ctrl KP_DOWN", "selectNextChangeLead",		                  "RIGHT", "selectChild",		               "KP_RIGHT", "selectChild",		                   "LEFT", "selectParent",		                "KP_LEFT", "selectParent",		                "PAGE_UP", "scrollUpChangeSelection",		          "shift PAGE_UP", "scrollUpExtendSelection",                     "ctrl shift PAGE_UP", "scrollUpExtendSelection",                           "ctrl PAGE_UP", "scrollUpChangeLead",		              "PAGE_DOWN", "scrollDownChangeSelection",		        "shift PAGE_DOWN", "scrollDownExtendSelection",                   "ctrl shift PAGE_DOWN", "scrollDownExtendSelection",                         "ctrl PAGE_DOWN", "scrollDownChangeLead",		                   "HOME", "selectFirst",		             "shift HOME", "selectFirstExtendSelection",                        "ctrl shift HOME", "selectFirstExtendSelection",                              "ctrl HOME", "selectFirstChangeLead",		                    "END", "selectLast",		              "shift END", "selectLastExtendSelection",                         "ctrl shift END", "selectLastExtendSelection",                               "ctrl END", "selectLastChangeLead",		                     "F2", "startEditing",		                 "ctrl A", "selectAll",		             "ctrl SLASH", "selectAll",		        "ctrl BACK_SLASH", "clearSelection",		              "ctrl LEFT", "scrollLeft",		           "ctrl KP_LEFT", "scrollLeft",		             "ctrl RIGHT", "scrollRight",		          "ctrl KP_RIGHT", "scrollRight",                                  "SPACE", "addToSelection",                             "ctrl SPACE", "toggleAndAnchor",                            "shift SPACE", "extendTo",                       "ctrl shift SPACE", "moveSelectionTo"		 }),	    "Tree.ancestorInputMap",	       new UIDefaults.LazyInputMap(new Object[] {		     "ESCAPE", "cancel"		 }),            // ToolBar            "ToolBar.border", toolBarBorder,            "ToolBar.background", menuBackground,            "ToolBar.foreground", getMenuForeground(),            "ToolBar.font", menuTextValue,            "ToolBar.dockingBackground", menuBackground,            "ToolBar.floatingBackground", menuBackground,            "ToolBar.dockingForeground", primaryControlDarkShadow,             "ToolBar.floatingForeground", primaryControl,            "ToolBar.rolloverBorder", new MetalLazyValue(                         "javax.swing.plaf.metal.MetalBorders",                         "getToolBarRolloverBorder"),            "ToolBar.nonrolloverBorder", new MetalLazyValue(                         "javax.swing.plaf.metal.MetalBorders",                         "getToolBarNonrolloverBorder"),	    "ToolBar.ancestorInputMap",	       new UIDefaults.LazyInputMap(new Object[] {		        "UP", "navigateUp",		     "KP_UP", "navigateUp",		      "DOWN", "navigateDown",		   "KP_DOWN", "navigateDown",		      "LEFT", "navigateLeft",		   "KP_LEFT", "navigateLeft",		     "RIGHT", "navigateRight",		  "KP_RIGHT", "navigateRight"		 }),            // RootPane            "RootPane.frameBorder", new MetalLazyValue(                      "javax.swing.plaf.metal.MetalBorders$FrameBorder"),            "RootPane.plainDialogBorder", dialogBorder,            "RootPane.informationDialogBorder", dialogBorder,            "RootPane.errorDialogBorder", new MetalLazyValue(                      "javax.swing.plaf.metal.MetalBorders$ErrorDialogBorder"),            "RootPane.colorChooserDialogBorder", questionDialogBorder,            "RootPane.fileChooserDialogBorder", questionDialogBorder,            "RootPane.questionDialogBorder", questionDialogBorder,            "RootPane.warningDialogBorder", new MetalLazyValue(                    "javax.swing.plaf.metal.MetalBorders$WarningDialogBorder"),	    // 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"	      },        };        table.putDefaults(defaults);        if (isWindows() && useSystemFonts() && theme.isSystemTheme()) {            Toolkit kit = Toolkit.getDefaultToolkit();            Object messageFont = new MetalFontDesktopProperty(                              "win.messagebo

⌨️ 快捷键说明

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