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

📄 steppedcomboboxexample.java

📁 tame,扩展了好多SWing组件:JTable
💻 JAVA
字号:
/* (swing1.1) */package tame.examples;import java.awt.Dimension;import java.awt.FlowLayout;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import javax.swing.JFrame;import tame.combobox.SteppedComboBox;/**@author Nobuo Tamemasa@version 1.0 12/12/98*/public class SteppedComboBoxExample extends JFrame {  public SteppedComboBoxExample() {    super("SteppedComboBox Example");    String[] str = {      "A",      "abcdefghijklmnopqrstuvwxyz",      "ABCDEFGHIJKLMNOPQRSTUVWXYZ",      "0123456789"    };    SteppedComboBox combo = new SteppedComboBox(str);    Dimension d = combo.getPreferredSize();    combo.setPreferredSize(new Dimension(50, d.height));    combo.setPopupWidth(d.width);    getContentPane().setLayout(new FlowLayout());    getContentPane().add(combo);  }  public static void main (String args[]) {    SteppedComboBoxExample f = new SteppedComboBoxExample();    f.addWindowListener(new WindowAdapter() {      public void windowClosing(WindowEvent e) {	System.exit(0);      }    });    f.setSize (300, 100);    f.show();  }}

⌨️ 快捷键说明

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