JEditorPane
| JDK Doc(JAVA) | Download this dictionary |
JEditorPane
- class javax.swing..JEditorPane
public class JEditorPane extends JTextComponent
Tree:java.lang.Object - java.awt.Component - java.awt.Container - javax.swing.JComponent - javax.swing.text.JTextComponent - javax.swing.JEditorPane
A text component to edit various kinds of content. This component uses implementations of the EditorKit to accomplish its behavior. It effectively morphs into the proper kind of text editor for the kind of content it is given. The content type that editor is bound to at any given time is determined by the EditorKit currently installed. If the content is set to a new URL, its type is used to determine the EditorKit that should be used to load the content.
public class JEditorPane extends JTextComponent
Tree:java.lang.Object - java.awt.Component - java.awt.Container - javax.swing.JComponent - javax.swing.text.JTextComponent - javax.swing.JEditorPane
A text component to edit various kinds of content. This component uses implementations of the EditorKit to accomplish its behavior. It effectively morphs into the proper kind of text editor for the kind of content it is given. The content type that editor is bound to at any given time is determined by the EditorKit currently installed. If the content is set to a new URL, its type is used to determine the EditorKit that should be used to load the content.
JEditorPane()
- Constructor for class javax.swing.JEditorPane
public JEditorPane ()
Constructs a new JEditorPane. The document model is set to null.
public JEditorPane ()
Constructs a new JEditorPane. The document model is set to null.
JEditorPane(String)
- Constructor for class javax.swing.JEditorPane
public JEditorPane (String url) throws IOException
Creates a JEditorPane based on a string containing a URL specification.Parameters: url - the URLThrows: IOException - if the URL is null or cannot be accessed
public JEditorPane (String url) throws IOException
Creates a JEditorPane based on a string containing a URL specification.Parameters: url - the URLThrows: IOException - if the URL is null or cannot be accessed
JEditorPane(String, String)
- Constructor for class javax.swing.JEditorPane
public JEditorPane (String type, String text)
Creates a JEditorPane that has been initialized to the given text. This is a convenience constructor that calls the setContentType and setText methods.Parameters: type - mime type of the given text. - the text to initialize with.text - the text to initialize with.
public JEditorPane (String type, String text)
Creates a JEditorPane that has been initialized to the given text. This is a convenience constructor that calls the setContentType and setText methods.Parameters: type - mime type of the given text. - the text to initialize with.text - the text to initialize with.
JEditorPane(URL)
- Constructor for class javax.swing.JEditorPane
public JEditorPane (URL initialPage) throws IOException
Creates a JEditorPane based on a specified URL for input.Parameters: initialPage - the URLThrows: IOException - if the URL is null or cannot be accessed
public JEditorPane (URL initialPage) throws IOException
Creates a JEditorPane based on a specified URL for input.Parameters: initialPage - the URLThrows: IOException - if the URL is null or cannot be accessed
You think you have ethics...
Take the survey NOW!
