stdoutlookandfeel.java
来自「java swing 开发代码」· Java 代码 · 共 35 行
JAVA
35 行
// StdOutLookAndFeel.java// A *simple* L&F that puts our StdOutButton to work. UIs for all the other// components would be needed to make this L&F truly functional.//package jswing.ch26;import javax.swing.*;public class StdOutLookAndFeel extends LookAndFeel { // A few simple informational methods . . . public String getName() { return "Standard Output"; } public String getID() { return "StdOut"; } public String getDescription() { return "The Standard Output Look and Feel"; } public boolean isNativeLookAndFeel() { return false; } public boolean isSupportedLookAndFeel() { return true; } // Our only default is the UI delegate for buttons public UIDefaults getDefaults() { UIDefaults table = new UIDefaults(); table.put("ButtonUI", "StdOutButtonUI"); // In order to function, we'd also need lines here to define UI delegates // extending each of the following classes: CheckBoxUI, ComboBoxUI, // DesktopIconUI, FileChooserUI, InternalFrameUI, LabelUI, // PopupMenuSeparatorUI, ProgressBarUI, RadioButtonUI, ScrollBarUI, // ScrollPaneUI, SeparatorUI, SliderUI, SplitPaneUI, TabbedPaneUI, // TextFieldUI, ToggleButtonUI, ToolBarUI, ToolTipUI, TreeUI, RootPaneUI. return table; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?