motiflookandfeel.java
来自「java jdk 1.4的源码」· Java 代码 · 共 1,161 行 · 第 1/4 页
JAVA
1,161 行
"HOME", "selectFirstChangeLead", "shift HOME", "selectFirstExtendSelection", "END", "selectLastChangeLead", "shift END", "selectLastExtendSelection", "F2", "startEditing", "ctrl A", "selectAll", "ctrl SLASH", "selectAll", "ctrl BACK_SLASH", "clearSelection", "ctrl SPACE", "selectItem", "shift SPACE", "extendSelection", "ctrl PAGE_DOWN", "scrollRightChangeLead", "ctrl PAGE_UP", "scrollLeftChangeLead", "ctrl shift PAGE_DOWN", "scrollRightExtendSelection", "ctrl shift PAGE_UP", "scrollLeftExtendSelection", "SPACE", "toggleSelection", }), "Tree.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancel" }), "Table.focusCellHighlightBorder", focusCellHighlightBorder, "Table.scrollPaneBorder", null, // "Table.background", white, // cell background color // "Table.focusCellBackground", white, "Table.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "COPY", "copy", "PASTE", "paste", "CUT", "cut", "control INSERT", "copy", "shift INSERT", "paste", "shift DELETE", "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" }), "FormattedTextField.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl C", DefaultEditorKit.copyAction, "ctrl V", DefaultEditorKit.pasteAction, "ctrl X", DefaultEditorKit.cutAction, "COPY", DefaultEditorKit.copyAction, "PASTE", DefaultEditorKit.pasteAction, "CUT", DefaultEditorKit.cutAction, "shift LEFT", DefaultEditorKit.selectionBackwardAction, "shift KP_LEFT", DefaultEditorKit.selectionBackwardAction, "shift RIGHT", DefaultEditorKit.selectionForwardAction, "shift KP_RIGHT", DefaultEditorKit.selectionForwardAction, "ctrl LEFT", DefaultEditorKit.previousWordAction, "ctrl KP_LEFT", DefaultEditorKit.previousWordAction, "ctrl RIGHT", DefaultEditorKit.nextWordAction, "ctrl KP_RIGHT", DefaultEditorKit.nextWordAction, "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", }), // ToolBar. "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" }), "ComboBox.control", table.get("control"), "ComboBox.controlForeground", black, "ComboBox.background", table.get("window"), "ComboBox.foreground", black, "ComboBox.border", comboBoxBorder, "ComboBox.selectionBackground", black, "ComboBox.selectionForeground", table.get("text"), "ComboBox.disabledBackground", table.get("control"), "ComboBox.disabledForeground", table.get("textInactiveText"), "ComboBox.font", dialogPlain12, "ComboBox.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "hidePopup", "PAGE_UP", "pageUpPassThrough", "PAGE_DOWN", "pageDownPassThrough", "HOME", "homePassThrough", "END", "endPassThrough", "DOWN", "selectNext", "KP_DOWN", "selectNext", "UP", "selectPrevious", "KP_UP", "selectPrevious" }), "TextField.caretForeground", black, "TextField.caretBlinkRate", new Integer(500), "TextField.inactiveForeground", table.get("textInactiveText"), "TextField.selectionBackground", table.get("textHighlight"), "TextField.selectionForeground", table.get("textHighlightText"), "TextField.background", table.get("window"), "TextField.foreground", table.get("textText"), "TextField.font", sansSerifPlain12, "TextField.border", textFieldBorder, "TextField.focusInputMap", fieldInputMap, "PasswordField.caretForeground", black, "PasswordField.caretBlinkRate", new Integer(500), "PasswordField.inactiveForeground", table.get("textInactiveText"), "PasswordField.selectionBackground", table.get("textHighlight"), "PasswordField.selectionForeground", table.get("textHighlightText"), "PasswordField.background", table.get("window"), "PasswordField.foreground", table.get("textText"), "PasswordField.font", monospacedPlain12, "PasswordField.border", textFieldBorder, "PasswordField.focusInputMap", fieldInputMap, "TextArea.caretForeground", black, "TextArea.caretBlinkRate", new Integer(500), "TextArea.inactiveForeground", table.get("textInactiveText"), "TextArea.selectionBackground", table.get("textHighlight"), "TextArea.selectionForeground", table.get("textHighlightText"), "TextArea.background", table.get("window"), "TextArea.foreground", table.get("textText"), "TextArea.font", monospacedPlain12, "TextArea.border", marginBorder, "TextArea.focusInputMap", multilineInputMap, "TextPane.caretForeground", black, "TextPane.caretBlinkRate", new Integer(500), "TextPane.inactiveForeground", table.get("textInactiveText"), "TextPane.selectionBackground", lightGray, "TextPane.selectionForeground", table.get("textHighlightText"), "TextPane.background", white, "TextPane.foreground", table.get("textText"), "TextPane.font", serifPlain12, "TextPane.border", marginBorder, "TextPane.focusInputMap", multilineInputMap, "EditorPane.caretForeground", red, "EditorPane.caretBlinkRate", new Integer(500), "EditorPane.inactiveForeground", table.get("textInactiveText"), "EditorPane.selectionBackground", lightGray, "EditorPane.selectionForeground", table.get("textHighlightText"), "EditorPane.background", white, "EditorPane.foreground", table.get("textText"), "EditorPane.font", serifPlain12, "EditorPane.border", marginBorder, "EditorPane.focusInputMap", multilineInputMap, "FileChooser.pathLabelMnemonic", new Integer(KeyEvent.VK_P), // 'p' "FileChooser.filterLabelMnemonic", new Integer (KeyEvent.VK_R), // 'r' "FileChooser.foldersLabelMnemonic", new Integer (KeyEvent.VK_L), // 'l' "FileChooser.filesLabelMnemonic", new Integer (KeyEvent.VK_I), // 'i' "FileChooser.enterFileNameLabelMnemonic", new Integer (KeyEvent.VK_N), // 'n' "FileChooser.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancelSelection" }), "ToolTip.border", raisedBevelBorder, "ToolTip.background", table.get("info"), "ToolTip.foreground", table.get("infoText"), // These window InputMap bindings are used when the Menu is // selected. "PopupMenu.selectedWindowInputMapBindings", new Object[] { "ESCAPE", "cancel", "TAB", "cancel", "shift TAB", "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" }, "OptionPane.border", optionPaneBorder, "OptionPane.messageAreaBorder", optionPaneMessageAreaBorder, "OptionPane.buttonAreaBorder", optionPaneButtonAreaBorder, "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" }, // 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); } /* * Returns whether this is being run on a JDK 1.2 or later VM. * This is a system-wide, rather than AppContext-wide, state. */ /*package-private*/ static boolean is1dot2 = true; static { try { // Test if method introduced in 1.2 is available. Method m = Toolkit.class.getMethod("getMaximumCursorColors", null); is1dot2 = (m != null); } catch (NoSuchMethodException e) { is1dot2 = false; } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?