droptest14.java

来自「java swing 开发代码」· Java 代码 · 共 36 行

JAVA
36
字号
// DropTest14.java// A simple drop tester application for JDK 1.4 Swing components.//package	jswing.ch24;import java.awt.*;import javax.swing.*;public class DropTest14 extends JFrame {  JTextArea ta;  public DropTest14() {    super("Drop Test 1.4");    setSize(300,300);    setDefaultCloseOperation(EXIT_ON_CLOSE);    getContentPane().add(        new JLabel("Drop the choice from your JList here:"),	BorderLayout.NORTH);    ta = new JTextArea();    ta.setBackground(Color.white);    getContentPane().add(ta, BorderLayout.CENTER);    // Set up our text area to recieve drops...    // This class will handle drop events        setVisible(true);  }  public static void main(String args[]) {    new DropTest14();  }} 

⌨️ 快捷键说明

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