utest.java

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

JAVA
28
字号
// UTest.java// A test frame work for the UberHandler drop handler.  This version has// no fancy Unicode characters for ease of use.  (Note that "ease of use"// only applys to humans...the Java tools are quite happy with Unicode// characters.  Not all text editors are, though...)//package	jswing.ch24;import javax.swing.*;public class UTest {  public static void main(String args[]) {    JFrame frame = new JFrame("Debugging Drop Zone");    frame.setSize(500,300);    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);    JTextArea jta = new JTextArea();    frame.getContentPane().add(new JScrollPane(jta));    UberHandler uh = new UberHandler();    uh.setOutput(jta);    jta.setTransferHandler(uh);    frame.setVisible(true);  }}

⌨️ 快捷键说明

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