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

📄 basiclookandfeel.java

📁 java jdk 1.4的源码
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
            "FileChooser.directoryOpenButtonMnemonic", new Integer(KeyEvent.VK_O),	    "FileChooser.newFolderIcon", newFolderIcon,            "FileChooser.upFolderIcon", upFolderIcon,            "FileChooser.homeFolderIcon", homeFolderIcon,            "FileChooser.detailsViewIcon", detailsViewIcon,            "FileChooser.listViewIcon", listViewIcon,	    "FileChooser.ancestorInputMap", 	       new UIDefaults.LazyInputMap(new Object[] {		     "ESCAPE", "cancelSelection"		 }),            "FileView.directoryIcon", directoryIcon,            "FileView.fileIcon", fileIcon,            "FileView.computerIcon", computerIcon,            "FileView.hardDriveIcon", hardDriveIcon,            "FileView.floppyDriveIcon", floppyDriveIcon,	    // *** InternalFrame            "InternalFrame.titleFont", dialogBold12,	    "InternalFrame.borderColor", table.get("control"),	    "InternalFrame.borderShadow", table.get("controlShadow"),	    "InternalFrame.borderDarkShadow", table.getColor("controlDkShadow"),	    "InternalFrame.borderHighlight", table.getColor("controlLtHighlight"),	    "InternalFrame.borderLight", table.getColor("controlHighlight"),	    "InternalFrame.border", internalFrameBorder,            "InternalFrame.icon", LookAndFeel.makeIcon(getClass(), "icons/JavaCup.gif"),            /* Default frame icons are undefined for Basic. */            "InternalFrame.maximizeIcon", 	    new UIDefaults.ProxyLazyValue(			   "javax.swing.plaf.basic.BasicIconFactory",			   "createEmptyFrameIcon"),            "InternalFrame.minimizeIcon", 	    new UIDefaults.ProxyLazyValue(			   "javax.swing.plaf.basic.BasicIconFactory",			   "createEmptyFrameIcon"),            "InternalFrame.iconifyIcon", 	    new UIDefaults.ProxyLazyValue(			   "javax.swing.plaf.basic.BasicIconFactory",			   "createEmptyFrameIcon"),            "InternalFrame.closeIcon", 	    new UIDefaults.ProxyLazyValue(			   "javax.swing.plaf.basic.BasicIconFactory",			   "createEmptyFrameIcon"),	    // InternalFrame Auditory Cue Mappings            "InternalFrame.closeSound", null,            "InternalFrame.maximizeSound", null,            "InternalFrame.minimizeSound", null,            "InternalFrame.restoreDownSound", null,            "InternalFrame.restoreUpSound", null,	    "InternalFrame.activeTitleBackground", table.get("activeCaption"),	    "InternalFrame.activeTitleForeground", table.get("activeCaptionText"),	    "InternalFrame.inactiveTitleBackground", table.get("inactiveCaption"),	    "InternalFrame.inactiveTitleForeground", table.get("inactiveCaptionText"),	    "InternalFrame.windowBindings", new Object[] {	      "shift ESCAPE", "showSystemMenu",		"ctrl SPACE", "showSystemMenu",	            "ESCAPE", "hideSystemMenu"},	    "DesktopIcon.border", internalFrameBorder,	    "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"	      }),	    // *** Label	    "Label.font", dialogPlain12,	    "Label.background", table.get("control"),	    "Label.foreground", table.get("controlText"),	    "Label.disabledForeground", white,	    "Label.disabledShadow", table.get("controlShadow"),            "Label.border", null,	    // *** List	    "List.font", dialogPlain12, 	    "List.background", table.get("window"),	    "List.foreground", table.get("textText"),	    "List.selectionBackground", table.get("textHighlight"),	    "List.selectionForeground", table.get("textHighlightText"),	    "List.focusCellHighlightBorder", focusCellHighlightBorder,	    "List.border", null,	    "List.cellRenderer", listCellRendererActiveValue,	    "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",		       "ctrl SPACE", "selectNextRowExtendSelection",		             "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"		 }),	    "List.focusInputMap.RightToLeft",	       new UIDefaults.LazyInputMap(new Object[] {		             "LEFT", "selectNextColumn",		          "KP_LEFT", "selectNextColumn",		       "shift LEFT", "selectNextColumnExtendSelection",		    "shift KP_LEFT", "selectNextColumnExtendSelection",		            "RIGHT", "selectPreviousColumn",		         "KP_RIGHT", "selectPreviousColumn",		      "shift RIGHT", "selectPreviousColumnExtendSelection",		   "shift KP_RIGHT", "selectPreviousColumnExtendSelection",		 }),	    // *** Menus	    "MenuBar.font", dialogPlain12,	    "MenuBar.background", table.get("menu"),	    "MenuBar.foreground", table.get("menuText"),	    "MenuBar.shadow", table.getColor("controlShadow"),            "MenuBar.highlight", table.getColor("controlLtHighlight"),	    "MenuBar.border", menuBarBorder,	    "MenuBar.windowBindings", new Object[] {		"F10", "takeFocus" },	    "MenuItem.font", dialogPlain12,	    "MenuItem.acceleratorFont", dialogPlain12,	    "MenuItem.background", table.get("menu"),	    "MenuItem.foreground", table.get("menuText"),	    "MenuItem.selectionForeground", table.get("textHighlightText"),	    "MenuItem.selectionBackground", table.get("textHighlight"),	    "MenuItem.disabledForeground", null,	    "MenuItem.acceleratorForeground", table.get("menuText"),	    "MenuItem.acceleratorSelectionForeground", table.get("textHighlightText"),	    "MenuItem.acceleratorDelimiter", menuItemAcceleratorDelimiter,	    "MenuItem.border", marginBorder,	    "MenuItem.borderPainted", Boolean.FALSE,	    "MenuItem.margin", new InsetsUIResource(2, 2, 2, 2),	    "MenuItem.checkIcon", menuItemCheckIcon,	    "MenuItem.arrowIcon", menuItemArrowIcon,	    "MenuItem.commandSound", null,	    "RadioButtonMenuItem.font", dialogPlain12,	    "RadioButtonMenuItem.acceleratorFont", dialogPlain12,	    "RadioButtonMenuItem.background", table.get("menu"),	    "RadioButtonMenuItem.foreground", table.get("menuText"),	    "RadioButtonMenuItem.selectionForeground", table.get("textHighlightText"),	    "RadioButtonMenuItem.selectionBackground", table.get("textHighlight"),	    "RadioButtonMenuItem.disabledForeground", null,	    "RadioButtonMenuItem.acceleratorForeground", table.get("menuText"),	    "RadioButtonMenuItem.acceleratorSelectionForeground", table.get("textHighlightText"),	    "RadioButtonMenuItem.border", marginBorder,	    "RadioButtonMenuItem.borderPainted", Boolean.FALSE,	    "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2),	    "RadioButtonMenuItem.checkIcon", radioButtonMenuItemIcon,	    "RadioButtonMenuItem.arrowIcon", menuItemArrowIcon,	    "RadioButtonMenuItem.commandSound", null,	    "CheckBoxMenuItem.font", dialogPlain12,	    "CheckBoxMenuItem.acceleratorFont", dialogPlain12,	    "CheckBoxMenuItem.background", table.get("menu"),	    "CheckBoxMenuItem.foreground", table.get("menuText"),	    "CheckBoxMenuItem.selectionForeground", table.get("textHighlightText"),	    "CheckBoxMenuItem.selectionBackground", table.get("textHighlight"),	    "CheckBoxMenuItem.disabledForeground", null,	    "CheckBoxMenuItem.acceleratorForeground", table.get("menuText"),	    "CheckBoxMenuItem.acceleratorSelectionForeground", table.get("textHighlightText"),	    "CheckBoxMenuItem.border", marginBorder,	    "CheckBoxMenuItem.borderPainted", Boolean.FALSE,	    "CheckBoxMenuItem.margin", new InsetsUIResource(2, 2, 2, 2),	    "CheckBoxMenuItem.checkIcon", checkBoxMenuItemIcon,	    "CheckBoxMenuItem.arrowIcon", menuItemArrowIcon,	    "CheckBoxMenuItem.commandSound", null,	    "Menu.font", dialogPlain12,	    "Menu.acceleratorFont", dialogPlain12,	    "Menu.background", table.get("menu"),	    "Menu.foreground", table.get("menuText"),	    "Menu.selectionForeground", table.get("textHighlightText"),	    "Menu.selectionBackground", table.get("textHighlight"),	    "Menu.disabledForeground", null,	    "Menu.acceleratorForeground", table.get("menuText"),	    "Menu.acceleratorSelectionForeground", table.get("textHighlightText"),	    "Menu.border", marginBorder,	    "Menu.borderPainted", Boolean.FALSE,	    "Menu.margin", new InsetsUIResource(2, 2, 2, 2),	    "Menu.checkIcon", menuItemCheckIcon,	    "Menu.arrowIcon", menuArrowIcon,	    "Menu.menuPopupOffsetX", new Integer(0),	    "Menu.menuPopupOffsetY", new Integer(0),	    "Menu.submenuPopupOffsetX", new Integer(0),	    "Menu.submenuPopupOffsetY", new Integer(0), 	    "Menu.shortcutKeys", new int[] {KeyEvent.ALT_MASK},            "Menu.crossMenuMnemonic", Boolean.TRUE,	    // PopupMenu	    "PopupMenu.font", dialogPlain12,	    "PopupMenu.background", table.get("menu"),	    "PopupMenu.foreground", table.get("menuText"),	    "PopupMenu.border", popupMenuBorder,	         // Internal Frame Auditory Cue Mappings            "PopupMenu.popupSound", null,	    // These window InputMap bindings are used when the Menu is	    // selected.	    "PopupMenu.selectedWindowInputMapBindings", new Object[] {		  "ESCAPE", "cancel",                    "DOWN", "selectNext",		 "KP_DOWN", "selectNext",		      "UP", "selectPrevious",		   "KP_UP", "selectPrevious",		    "LEFT", "selectParent",		 "KP_LEFT", "selectParent",		   "RIGHT", "selectChild",		"KP_RIGHT", "selectChild",		   "ENTER", "return",		   "SPACE", "return"	    },	    "PopupMenu.selectedWindowInputMapBindings.RightToLeft", new Object[] {		    "LEFT", "selectChild",		 "KP_LEFT", "selectChild",		   "RIGHT", "selectParent",		"KP_RIGHT", "selectParent",	    },	    // *** OptionPane            // You can additionaly define OptionPane.messageFont which will            // dictate the fonts used for the message, and            // OptionPane.buttonFont, which defines the font for the buttons.	    "OptionPane.font", dialogPlain12,	    "OptionPane.background", table.get("control"),	    "OptionPane.foreground", table.get("controlText"),            "OptionPane.messageForeground", table.get("controlText"),	    "OptionPane.border", optionPaneBorder,            "OptionPane.messageAreaBorder", zeroBorder,            "OptionPane.buttonAreaBorder", optionPaneButtonAreaBorder,            "OptionPane.minimumSize", optionPaneMinimumSize,	    "OptionPane.errorIcon", LookAndFeel.makeIcon(getClass(), "icons/Error.gif"),	    "OptionPane.informationIcon", LookAndFeel.makeIcon(getClass(), "icons/Inform.gif"),	    "OptionPane.warningIcon", LookAndFeel.makeIcon(getClass(), "icons/Warn.gif"),	    "OptionPane.questionIcon", LookAndFeel.makeIcon(getClass(), "icons/Question.gif"),	    "OptionPane.windowBindings", new Object[] {		"ESCAPE", "close" },	         // OptionPane Auditory Cue Mappings            "OptionPane.errorSound", null,            "OptionPane.informationSound", null, // Info and Plain            "OptionPane.questionSound", null,            "OptionPane.warningSound", null,	    "OptionPane.buttonClickThreshhold", fiveHundred,	    // *** Panel	    "Panel.font", dialogPlain12,	    "Panel.background", table.get("control"),	    "Panel.foreground", table.get("textText"),	    // *** ProgressBar	    "ProgressBar.font", dialogPlain12,	    "ProgressBar.foreground",  table.get("textHighlight"),	    "ProgressBar.background", table.get("control"),	    "ProgressBar.selectionForeground", table.get("control"),	    "ProgressBar.selectionBackground", table.get("textHighlight"),	    "ProgressBar.border", progressBarBorder,

⌨️ 快捷键说明

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