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

📄 textareaeditor.java

📁 SWING的界面UI包 SWING的界面UI包
💻 JAVA
字号:
/*
 * TextAreaEditor.java
 *
 * Created on 2007年8月15日, 下午11:52
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package dyno.swing.designer.beans.editors;

import java.awt.Component;



/**
 *
 * @author William Chen
 */
public class TextAreaEditor extends AbstractDesignerEditor {

    private JScrollPaneTextArea editor;

    /** Creates a new instance of TextEditor */
    public TextAreaEditor() {
        editor = new JScrollPaneTextArea();
    }

    public Component getEditorComponent() {
        return editor;
    }

    public void setValue(Object value) {
        editor.setText((value == null) ? "" : (String) value);
        editor.selectAll();
    }

    public Object getValue() {
        return editor.getText();
    }
}

⌨️ 快捷键说明

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