?? xfatextarea.java
字號(hào):
package com.lowagie.rups.view.itext;
import java.io.IOException;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import com.lowagie.rups.io.OutputStreamResource;
import com.lowagie.rups.io.TextAreaOutputStream;
/**
* TextArea that visualizes the XFA XML file.
*/
public class XfaTextArea extends JScrollPane {
/** The text area with the content stream. */
protected JTextArea text;
/**
* Constructs a StreamTextArea.
* @throws IOException
*/
public XfaTextArea() {
super();
text = new JTextArea();
setViewportView(text);
}
public void clear() {
text.setText("");
}
public void load(OutputStreamResource xml) throws IOException {
TextAreaOutputStream stream = new TextAreaOutputStream(text);
xml.writeTo(stream);
}
/** A Serial Version UID. */
private static final long serialVersionUID = -8275229961781669457L;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -