39 |
package javax.swing; |
package javax.swing; |
40 |
|
|
41 |
import java.awt.Dimension; |
import java.awt.Dimension; |
|
import java.awt.event.KeyEvent; |
|
42 |
import java.io.IOException; |
import java.io.IOException; |
43 |
import java.io.InputStream; |
import java.io.InputStream; |
44 |
import java.net.URL; |
import java.net.URL; |
51 |
import javax.swing.text.EditorKit; |
import javax.swing.text.EditorKit; |
52 |
import javax.swing.text.JTextComponent; |
import javax.swing.text.JTextComponent; |
53 |
|
|
54 |
|
/** |
55 |
|
* A powerful text editor component that can handle different types of |
56 |
|
* content. |
57 |
|
* |
58 |
|
* The JEditorPane text component is driven by an instance of |
59 |
|
* {@link EditorKit}. The editor kit is responsible for providing |
60 |
|
* a default {@link Document} implementation, a mechanism for loading |
61 |
|
* and saving documents of its supported content type and providing |
62 |
|
* a set of {@link Action}s for manipulating the content. |
63 |
|
* |
64 |
|
* By default the following content types are supported: |
65 |
|
* <ul> |
66 |
|
* <li><code>text/plain</code>: Plain text, handled by |
67 |
|
* {@link javax.swing.text.DefaultEditorKit}.</li> |
68 |
|
* <li><code>text/html</code>: HTML 4.0 styled text, handled by |
69 |
|
* {@link javax.swing.text.html.HTMLEditorKit}.</li> |
70 |
|
* <li><code>text/rtf</code>: RTF text, handled by |
71 |
|
* {@link javax.swing.text.rtf.RTFEditorKit}.</li> |
72 |
|
* </ul> |
73 |
|
* |
74 |
|
* @author original author unknown |
75 |
|
* @author Roman Kennke (roman@kennke.org) |
76 |
|
*/ |
77 |
public class JEditorPane extends JTextComponent |
public class JEditorPane extends JTextComponent |
78 |
{ |
{ |
79 |
private static final long serialVersionUID = 3140472492599046285L; |
private static final long serialVersionUID = 3140472492599046285L; |