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

📄 stdoutlookandfeel.java

📁 java swing 开发代码
💻 JAVA
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -