motiflookandfeel.java
来自「java jdk 1.4的源码」· Java 代码 · 共 1,161 行 · 第 1/4 页
JAVA
1,161 行
"MenuBar.foreground", table.get("menuText"), "MenuBar.font", dialogPlain12, "MenuBar.windowBindings", new Object[] { "F10", "takeFocus" }, "MenuItem.border", menuMarginBorder, "MenuItem.font", dialogPlain12, "MenuItem.acceleratorFont", dialogPlain12, "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.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.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, "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", "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" }), "DesktopIcon.icon", LookAndFeel.makeIcon(getClass(), "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"), "ScrollBar.thumbHighlight", table.get("controlHighlight"), "ScrollBar.thumbDarkShadow", table.get("controlDkShadow"), "ScrollBar.thumbShadow", table.get("controlShadow"), "ScrollBar.border", loweredBevelBorder, "ScrollBar.allowsAbsolutePositioning", Boolean.TRUE, "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.font", dialogPlain12, "ScrollPane.background", table.get("control"), "ScrollPane.foreground", table.get("controlText"), "ScrollPane.border", null, "ScrollPane.viewportBorder", loweredBevelBorder, "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" }), "Slider.border", focusBevelBorder, "Slider.foreground", table.get("control"), "Slider.background", controlDarker, "Slider.highlight", table.get("controlHighlight"), "Slider.shadow", table.get("controlShadow"), "Slider.focus", table.get("controlDkShadow"), "Slider.focusInsets", sliderFocusInsets, "Slider.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "RIGHT", "positiveUnitIncrement", "KP_RIGHT", "positiveUnitIncrement", "DOWN", "negativeUnitIncrement", "KP_DOWN", "negativeUnitIncrement", "ctrl PAGE_DOWN", "negativeBlockIncrement", "LEFT", "negativeUnitIncrement", "KP_LEFT", "negativeUnitIncrement", "UP", "positiveUnitIncrement", "KP_UP", "positiveUnitIncrement", "ctrl PAGE_UP", "positiveBlockIncrement", "HOME", "minScroll", "END", "maxScroll" }), // Spinner "Spinner.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "UP", "increment", "KP_UP", "increment", "DOWN", "decrement", "KP_DOWN", "decrement", }), "Spinner.border", textFieldBorder, "SplitPane.background", table.get("control"), "SplitPane.highlight", table.get("controlHighlight"), "SplitPane.shadow", table.get("controlShadow"), "SplitPane.dividerSize", new Integer(20), "SplitPane.activeThumb", table.get("activeCaptionBorder"), "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.font", dialogPlain12, "TabbedPane.background", table.get("control"), "TabbedPane.foreground", table.get("controlText"), "TabbedPane.light", table.get("controlHighlight"), "TabbedPane.highlight", table.get("controlLtHighlight"), "TabbedPane.shadow", table.get("controlShadow"), "TabbedPane.darkShadow", table.get("controlShadow"), "TabbedPane.unselectedTabBackground", unselectedTabBackground, "TabbedPane.unselectedTabForeground", unselectedTabForeground, "TabbedPane.unselectedTabHighlight", unselectedTabHighlight, "TabbedPane.unselectedTabShadow", unselectedTabShadow, "TabbedPane.focus", table.get("activeCaptionBorder"), "TabbedPane.tabInsets", tabbedPaneTabInsets, "TabbedPane.selectedTabPadInsets", tabbedPaneTabPadInsets, "TabbedPane.tabAreaInsets", tabbedPaneTabAreaInsets, "TabbedPane.contentBorderInsets", tabbedPaneContentBorderInsets, "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", }), "Tree.background", controlDarker, // default: dark slate blue "Tree.hash", table.get("controlDkShadow"), // default: black "Tree.iconShadow", table.get("controlShadow"), "Tree.iconHighlight", table.get("controlHighlight"), "Tree.iconBackground", table.get("control"), "Tree.iconForeground", table.get("controlShadow"), // default: black "Tree.textBackground", controlDarker, // default: dark slate blue "Tree.textForeground", table.get("textText"), // default: black "Tree.selectionBackground", table.get("text"), // default: white "Tree.selectionForeground", table.get("textText"), // default: black "Tree.selectionBorderColor", table.get("activeCaptionBorder"), // default: maroon "Tree.openIcon", treeOpenIcon, "Tree.closedIcon", treeClosedIcon, "Tree.leafIcon", treeLeafIcon, "Tree.expandedIcon", treeExpandedIcon, "Tree.collapsedIcon", treeCollapsedIcon, "Tree.editorBorder", focusBorder, "Tree.editorBorderSelectionColor", table.get("activeCaptionBorder"), "Tree.rowHeight", new Integer(18), "Tree.drawsFocusBorderAroundIcon", Boolean.TRUE, "Tree.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "COPY", "copy", "PASTE", "paste", "CUT", "cut", "control INSERT", "copy", "shift INSERT", "paste", "shift DELETE", "cut", "UP", "selectPreviousChangeLead", "KP_UP", "selectPreviousChangeLead", "shift UP", "selectPreviousExtendSelection", "shift KP_UP", "selectPreviousExtendSelection", "DOWN", "selectNextChangeLead", "KP_DOWN", "selectNextChangeLead", "shift DOWN", "selectNextExtendSelection", "shift KP_DOWN", "selectNextExtendSelection", "RIGHT", "selectChildChangeLead", "KP_RIGHT", "selectChildChangeLead", "LEFT", "selectParentChangeLead", "KP_LEFT", "selectParentChangeLead", "PAGE_UP", "scrollUpChangeLead", "shift PAGE_UP", "scrollUpExtendSelection", "PAGE_DOWN", "scrollDownChangeLead", "shift PAGE_DOWN", "scrollDownExtendSelection",
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?