basiclookandfeel.java

来自「linux下建立JAVA虚拟机的源码KAFFE」· Java 代码 · 共 1,300 行 · 第 1/5 页

JAVA
1,300
字号
            KeyStroke.getKeyStroke("shift KP_DOWN"), "selectNextRowExtendSelection",            KeyStroke.getKeyStroke("UP"), "selectPreviousRow",            KeyStroke.getKeyStroke("shift ctrl HOME"), "selectFirstRowExtendSelection",            KeyStroke.getKeyStroke("shift PAGE_DOWN"), "scrollDownExtendSelection",            KeyStroke.getKeyStroke("KP_RIGHT"), "selectNextColumn",            KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selectNextColumnExtendSelection",            KeyStroke.getKeyStroke("PAGE_UP"), "scrollUp",            KeyStroke.getKeyStroke("PASTE"), "paste"      }),      "List.font", new FontUIResource("Dialog", Font.PLAIN, 12),      "List.foreground", new ColorUIResource(Color.black),      "List.selectionBackground", new ColorUIResource(0, 0, 128),      "List.selectionForeground", new ColorUIResource(Color.white),      "List.focusCellHighlightBorder",      new BorderUIResource.      LineBorderUIResource(new ColorUIResource(Color.yellow)),      "Menu.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12),      "Menu.crossMenuMnemonic", Boolean.TRUE,      "Menu.acceleratorForeground", new ColorUIResource(darkShadow),      "Menu.acceleratorSelectionForeground", new ColorUIResource(Color.white),      "Menu.arrowIcon", BasicIconFactory.getMenuArrowIcon(),      "Menu.background", new ColorUIResource(light),      "Menu.border", new BasicBorders.MarginBorder(),      "Menu.borderPainted", Boolean.FALSE,      "Menu.checkIcon", BasicIconFactory.getMenuItemCheckIcon(),      "Menu.consumesTabs", Boolean.TRUE,      "Menu.font", new FontUIResource("Dialog", Font.PLAIN, 12),      "Menu.foreground", new ColorUIResource(darkShadow),      "Menu.margin", new InsetsUIResource(2, 2, 2, 2),      "Menu.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"      },      "Menu.menuPopupOffsetX", new Integer(0),      "Menu.menuPopupOffsetY", new Integer(0),      "Menu.submenuPopupOffsetX", new Integer(0),      "Menu.submenuPopupOffsetY", new Integer(0),      "Menu.selectionBackground", new ColorUIResource(Color.black),      "Menu.selectionForeground", new ColorUIResource(Color.white),      "MenuBar.background", new ColorUIResource(light),      "MenuBar.border", new BasicBorders.MenuBarBorder(null, null),      "MenuBar.font", new FontUIResource("Dialog", Font.PLAIN, 12),      "MenuBar.foreground", new ColorUIResource(darkShadow),      "MenuBar.highlight", new ColorUIResource(highLight),      "MenuBar.shadow", new ColorUIResource(shadow),      "MenuBar.windowBindings", new Object[] {        "F10", "takeFocus"      },      "MenuItem.acceleratorDelimiter", "+",      "MenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12),      "MenuItem.acceleratorForeground", new ColorUIResource(darkShadow),      "MenuItem.acceleratorSelectionForeground",      new ColorUIResource(Color.white),      "MenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(),      "MenuItem.background", new ColorUIResource(light),      "MenuItem.border", new BasicBorders.MarginBorder(),      "MenuItem.borderPainted", Boolean.FALSE,      "MenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12),      "MenuItem.foreground", new ColorUIResource(darkShadow),      "MenuItem.margin", new InsetsUIResource(2, 2, 2, 2),      "MenuItem.selectionBackground", new ColorUIResource(Color.black),      "MenuItem.selectionForeground", new ColorUIResource(Color.white),      "OptionPane.background", new ColorUIResource(light),      "OptionPane.border",      new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0),      "OptionPane.buttonAreaBorder",      new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0),      "OptionPane.buttonClickThreshhold", new Integer(500),      "OptionPane.cancelButtonText", "Cancel",      "OptionPane.font", new FontUIResource("Dialog", Font.PLAIN, 12),      "OptionPane.foreground", new ColorUIResource(darkShadow),      "OptionPane.messageAreaBorder",      new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0),      "OptionPane.messageForeground", new ColorUIResource(darkShadow),      "OptionPane.minimumSize",      new DimensionUIResource(BasicOptionPaneUI.MinimumWidth,                              BasicOptionPaneUI.MinimumHeight),      "OptionPane.noButtonText", "No",      "OptionPane.okButtonText", "OK",      "OptionPane.windowBindings", new Object[] {        "ESCAPE",  "close"      },      "OptionPane.yesButtonText", "Yes",      "Panel.background", new ColorUIResource(light),      "Panel.font", new FontUIResource("Dialog", Font.PLAIN, 12),      "Panel.foreground", new ColorUIResource(Color.black),      "PasswordField.background", new ColorUIResource(light),      "PasswordField.border", new BasicBorders.FieldBorder(null, null,                                                           null, null),      "PasswordField.caretBlinkRate", new Integer(500),      "PasswordField.caretForeground", new ColorUIResource(Color.black),      "PasswordField.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12),      "PasswordField.foreground", new ColorUIResource(Color.black),      "PasswordField.inactiveBackground", new ColorUIResource(light),      "PasswordField.inactiveForeground", new ColorUIResource(Color.gray),      "PasswordField.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {                      KeyStroke.getKeyStroke("END"), "caret-end-line",                      KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation",                      KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward",                      KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward",                      KeyStroke.getKeyStroke("HOME"), "caret-begin-line",                      KeyStroke.getKeyStroke("ctrl V"), "paste-from-clipboard",                      KeyStroke.getKeyStroke("ctrl H"), "delete-previous",                      KeyStroke.getKeyStroke("KP_LEFT"), "caret-backward",                      KeyStroke.getKeyStroke("LEFT"), "caret-backward",                      KeyStroke.getKeyStroke("ctrl X"), "cut-to-clipboard",                      KeyStroke.getKeyStroke("KP_RIGHT"), "caret-forward",                      KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selection-end-line",                      KeyStroke.getKeyStroke("COPY"), "copy-to-clipboard",                      KeyStroke.getKeyStroke("shift HOME"), "selection-begin-line",                      KeyStroke.getKeyStroke("RIGHT"), "caret-forward",                      KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-begin-line",                      KeyStroke.getKeyStroke("ctrl KP_LEFT"), "caret-begin-line",                      KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "caret-end-line",                      KeyStroke.getKeyStroke("PASTE"), "paste-from-clipboard",                      KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selection-end-line",                      KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "unselect",                      KeyStroke.getKeyStroke("ctrl A"), "select-all",                      KeyStroke.getKeyStroke("shift KP_RIGHT"), "selection-forward",                      KeyStroke.getKeyStroke("CUT"), "cut-to-clipboard",                      KeyStroke.getKeyStroke("ctrl LEFT"), "caret-begin-line",                      KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous",                      KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selection-begin-line",                      KeyStroke.getKeyStroke("ctrl C"), "copy-to-clipboard",                      KeyStroke.getKeyStroke("shift END"), "selection-end-line",                      KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-end-line",                      KeyStroke.getKeyStroke("DELETE"), "delete-next",                      KeyStroke.getKeyStroke("ENTER"), "notify-field-accept",                      KeyStroke.getKeyStroke("shift LEFT"), "selection-backward"                            }),      "PasswordField.margin", new InsetsUIResource(0, 0, 0, 0),      "PasswordField.selectionBackground", new ColorUIResource(Color.black),      "PasswordField.selectionForeground", new ColorUIResource(Color.white),      "PopupMenu.background", new ColorUIResource(light),      "PopupMenu.border", new BorderUIResource.BevelBorderUIResource(0),      "PopupMenu.font", new FontUIResource("Dialog", Font.PLAIN, 12),      "PopupMenu.foreground", new ColorUIResource(darkShadow),      "ProgressBar.background", new ColorUIResource(Color.LIGHT_GRAY),      "ProgressBar.border",      new BorderUIResource.LineBorderUIResource(Color.GREEN, 2),      "ProgressBar.cellLength", new Integer(1),      "ProgressBar.cellSpacing", new Integer(0),      "ProgressBar.font", new FontUIResource("Dialog", Font.PLAIN, 12),      "ProgressBar.foreground", new ColorUIResource(0, 0, 128),      "ProgressBar.selectionBackground", new ColorUIResource(0, 0, 128),      "ProgressBar.selectionForeground", new ColorUIResource(Color.LIGHT_GRAY),      "ProgressBar.repaintInterval", new Integer(50),      "ProgressBar.cycleTime", new Integer(3000),      "RadioButton.background", new ColorUIResource(light),      "RadioButton.border", new BorderUIResource.CompoundBorderUIResource(null,                                                                          null),      "RadioButton.darkShadow", new ColorUIResource(shadow),      "RadioButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {        KeyStroke.getKeyStroke("SPACE"),  "pressed",        KeyStroke.getKeyStroke("released SPACE"), "released"      }),      "RadioButton.font", new FontUIResource("Dialog", Font.PLAIN, 12),      "RadioButton.foreground", new ColorUIResource(darkShadow),      "RadioButton.highlight", new ColorUIResource(highLight),      "RadioButton.icon",      new UIDefaults.LazyValue()      {        public Object createValue(UIDefaults def)        {          return BasicIconFactory.getRadioButtonIcon();        }      },      "RadioButton.light", new ColorUIResource(highLight),      "RadioButton.margin", new InsetsUIResource(2, 2, 2, 2),      "RadioButton.shadow", new ColorUIResource(shadow),      "RadioButton.textIconGap", new Integer(4),      "RadioButton.textShiftOffset", new Integer(0),      "RadioButtonMenuItem.acceleratorFont",      new FontUIResource("Dialog", Font.PLAIN, 12),      "RadioButtonMenuItem.acceleratorForeground",      new ColorUIResource(darkShadow),      "RadioButtonMenuItem.acceleratorSelectionForeground",      new ColorUIResource(Color.white),      "RadioButtonMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(),      "RadioButtonMenuItem.background", new ColorUIResource(light),      "RadioButtonMenuItem.border", new BasicBorders.MarginBorder(),      "RadioButtonMenuItem.borderPainted", Boolean.FALSE,      "RadioButtonMenuItem.checkIcon", BasicIconFactory.getRadioButtonMenuItemIcon(),      "RadioButtonMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12),      "RadioButtonMenuItem.foreground", new ColorUIResource(darkShadow),      "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2),      "RadioButtonMenuItem.selectionBackground",      new ColorUIResource(Color.black),      "RadioButtonMenuItem.selectionForeground",      new ColorUIResource(Color.white),      "RootPane.defaultButtonWindowKeyBindings", new Object[] {        "ENTER",  "press",        "released ENTER", "release",        "ctrl ENTER",  "press",        "ctrl released ENTER", "release"      },      "ScrollBar.background", new ColorUIResource(224, 224, 224),      "ScrollBar.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {        "PAGE_UP", "negativeBlockIncrement",        "PAGE_DOWN", "positiveBlockIncrement",        "END",  "maxScroll",        "HOME",  "minScroll",        "LEFT",  "positiveUnitIncrement",        "KP_UP", "negativeUnitIncrement",        "KP_DOWN", "positiveUnitIncrement",        "UP",  "negativeUnitIncrement",        "RIGHT", "negativeUnitIncrement",        "KP_LEFT", "positiveUnitIncrement",        "DOWN",  "positiveUnitIncrement",        "KP_RIGHT", "negativeUnitIncrement"      }),      "ScrollBar.foreground", new ColorUIResource(light),      "ScrollBar.maximumThumbSize", new DimensionUIResource(4096, 4096),      "ScrollBar.minimumThumbSize", new DimensionUIResource(8, 8),      "ScrollBar.thumb", new ColorUIResource(light),      "ScrollBar.thumbDarkShadow", new ColorUIResource(shadow),      "ScrollBar.thumbHighlight", new ColorUIResource(highLight),      "ScrollBar.thumbShadow", new ColorUIResource(shadow),      "ScrollBar.track", new ColorUIResource(light),      "ScrollBar.trackHighlight", new ColorUIResource(shadow),      "ScrollBar.width", new Integer(16),      "ScrollPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {        "PAGE_UP", "scrollUp",        "KP_LEFT", "unitScrollLeft",        "ctrl PAGE_DOWN","scrollRight",        "PAGE_DOWN", "scrollDown",        "KP_RIGHT", "unitScrollRight",        "LEFT",  "unitScrollLeft",        "ctrl END", "scrollEnd",        "UP",  "unitScrollUp",        "RIGHT", "unitScrollRight",        "DOWN",  "unitScrollDown",        "ctrl HOME", "scrollHome",        "ctrl PAGE_UP", "scrollLeft",        "KP_UP", "unitScrollUp",        "KP_DOWN", "unitScrollDown"      }),      "ScrollPane.background", new ColorUIResource(light),      "ScrollPane.border", new BorderUIResource.EtchedBorderUIResource(),      "ScrollPane.font", new FontUIResource("Dialog", Font.PLAIN, 12),      "ScrollPane.foreground", new ColorUIResource(darkShadow),      "Separator.background", new ColorUIResource(highLight),      "Separator.foreground", new ColorUIResource(shadow),      "Separator.highlight", new ColorUIResource(highLight),      "Separator.shadow", new ColorUIResource(shadow),      "Slider.background", new ColorUIResource(light),      "Slider.focus", new ColorUIResource(shadow),      "Slider.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {            "ctrl PAGE_DOWN", "negativeBlockIncrement",            "PAGE_DOWN", "negativeBlockIncrement",            "PAGE_UP", "positiveBlockIncrement",

⌨️ 快捷键说明

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