<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 05:55:51 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  JEditorPane
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/JEditorPane.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../javax/swing/JDialog.AccessibleJDialog.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../javax/swing/JEditorPane.AccessibleJEditorPane.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="JEditorPane.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.text.JTextComponent">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
javax.swing</FONT>
<BR>
Class  JEditorPane</H2>
<PRE>
java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--<A HREF="../../javax/swing/JComponent.html">javax.swing.JComponent</A>
                    |
                    +--<A HREF="../../javax/swing/text/JTextComponent.html">javax.swing.text.JTextComponent</A>
                          |
                          +--<B>javax.swing.JEditorPane</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../javax/swing/JTextPane.html">JTextPane</A></DD>
</DL>
<HR>
<DL>
<DT>public class <B>JEditorPane</B><DT>extends <A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A></DL>

<P>
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.
 <p>
 By default, the following types of content are known:
 <dl>
 <dt><b>text/plain</b>
 <dd>Plain text, which is the default the type given isn't
 recognized.  The kit used in this case is an extension of
 DefaultEditorKit that produces a wrapped plain text view.
 <dt><b>text/html</b>
 <dd>HTML text.  The kit used in this case is the class
 <code>javax.swing.text.html.HTMLEditorKit</code>
 which provides html 3.2 support.
 <dt><b>text/rtf</b>
 <dd>RTF text.  The kit used in this case is the class
 <code>javax.swing.text.rtf.RTFEditorKit</code>
 which provides a limited support of the Rich Text Format.
 </dl>
 <p>
 There are several ways to load content into this component.
 <ol>
 <li>
 The <a href="#setText">setText</a> method can be used to initialize
 the component from a string.  In this case the current EditorKit
 will be used, and the content type will be expected to be of this
 type.
 <li>
 The <a href="#read">read</a> method can be used to initialize the 
 component from a Reader.  Note that if the content type is html,
 relative references (e.g. for things like images) can't be resolved 
 unless the &lt;base&gt; tag is used or the <em>Base</em> property
 on HTMLDocument is set.  In this case the current EditorKit
 will be used, and the content type will be expected to be of this
 type.
 <li>
 The <a href="#setPage">setPage</a> method can be used to initialize
 the component from a URL.  In this case, the content type will be
 determined from the URL, and the registered EditorKit for that content
 type will be set.
 </ol>
 <p>
 For the keyboard keys used by this component in the standard Look and
 Feel (L&F) renditions, see the
 <a href="doc-files/Key-Index.html#JEditorPane">JEditorPane</a> key assignments.
 <p>
 Some kinds of content may provide hyperlink support by generating
 hyperlink events.  The html EditorKit will generate hyperlink events
 if the JEditorPane is <em>not editable</em> 
 (i.e. <code>JEditorPane.setEditable(false);</code> has been called).
 If html frames are embedded in the document, the typical response would be
 to change a portion of the current document.  The following code
 fragment is a possible hyperlink listener implementation, that treats 
 html frame events specially, and simply displays any other activated
 hyperlinks.
 <code><pre>

class Hyperactive implements HyperlinkListener {

public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
JEditorPane pane = (JEditorPane) e.getSource();
if (e instanceof HTMLFrameHyperlinkEvent) {
HTMLFrameHyperlinkEvent  evt = (HTMLFrameHyperlinkEvent)e;
HTMLDocument doc = (HTMLDocument)pane.getDocument();
doc.processHTMLFrameHyperlinkEvent(evt);
} else {
try {
pane.setPage(e.getURL());
} catch (Throwable t) {
t.printStackTrace();
}
}
}
}
}

 </pre></code>
 <p>
 Culturally dependent information in some documents is handled through
 a mechanism called character encoding.  Character encoding is an
 unambiguous mapping of the members of a character set (letters, ideographs,
 digits, symbols, or control functions) to specific numeric code values. It
 represents the way the file is stored. Example character encodings are
 ISO-8859-1, ISO-8859-5, Shift-jis, Euc-jp, and UTF-8. When the file is 
 passed to an user agent (JEditorPane) it is converted to the document 
 character set (ISO-10646 aka Unicode).
 <p>
 There are multiple ways to get a character set mapping to happen 
 with JEditorPane.  
 <ol>
 <li>
 One way is to specify the character set as a parameter of the MIME 
 type.  This will be established by a call to the 
 <a href="#setContentType">setContentType</a> method.  If the content
 is loaded by the <a href="#setPage">setPage</a> method the content
 type will have been set according to the specification of the URL.
 It the file is loaded directly, the content type would be expected to
 have been set prior to loading.
 <li>
 Another way the character set can be specified is in the document itself.
 This requires reading the document prior to determining the character set
 that is desired.  To handle this, it is expected that the 
 EditorKit.read operation throw a ChangedCharSetException which will
 be caught.  The read is then restarted with a new Reader that uses
 the character set specified in the ChangedCharSetException (which is an
 IOException).
 </ol>
 <p>
 <strong>Warning:</strong>
 Serialized objects of this class will not be compatible with 
 future Swing releases.  The current serialization support is appropriate
 for short term storage or RMI between applications running the same
 version of Swing.  A future release of Swing will provide support for
 long term persistence.
<P>
<DL>
<DT><B>See Also: </B><DD><A HREF="../../serialized-form.html#javax.swing.JEditorPane">Serialized Form</A></DL>
<HR>

<P>
<!-- ======== INNER CLASS SUMMARY ======== -->

<A NAME="inner_class_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Inner Class Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.AccessibleJEditorPane.html">JEditorPane.AccessibleJEditorPane</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The class used to obtain the accessible role for this object.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.AccessibleJEditorPaneHTML.html">JEditorPane.AccessibleJEditorPaneHTML</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This class provides support for AccessibleHypertext, and is used
 in instances where the EditorKit installed in this JEditorPane is
 an instance of HTMLEditorKit.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.JEditorPaneAccessibleHypertextSupport.html">JEditorPane.JEditorPaneAccessibleHypertextSupport</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;What's returned by AccessibleJEditorPaneHTML.getAccessibleText()

 Provides support for AccessibleHypertext in case there is an
 HTML document being displayed in this JEditorPane.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="inner_classes_inherited_from_class_javax.swing.text.JTextComponent"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Inner classes inherited from class javax.swing.text.<A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html">JTextComponent.AccessibleJTextComponent</A></B>,  
<B><A HREF="../../javax/swing/text/JTextComponent.KeyBinding.html">JTextComponent.KeyBinding</A></B></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="inner_classes_inherited_from_class_javax.swing.JComponent"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Inner classes inherited from class javax.swing.<A HREF="../../javax/swing/JComponent.html">JComponent</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../javax/swing/JComponent.AccessibleJComponent.html">JComponent.AccessibleJComponent</A></B></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="fields_inherited_from_class_javax.swing.text.JTextComponent"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Fields inherited from class javax.swing.text.<A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../javax/swing/text/JTextComponent.html#DEFAULT_KEYMAP">DEFAULT_KEYMAP</A>,  
<A HREF="../../javax/swing/text/JTextComponent.html#FOCUS_ACCELERATOR_KEY">FOCUS_ACCELERATOR_KEY</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_javax.swing.JComponent"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Fields inherited from class javax.swing.<A HREF="../../javax/swing/JComponent.html">JComponent</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../javax/swing/JComponent.html#accessibleContext">accessibleContext</A>,  
<A HREF="../../javax/swing/JComponent.html#listenerList">listenerList</A>,  
<A HREF="../../javax/swing/JComponent.html#TOOL_TIP_TEXT_KEY">TOOL_TIP_TEXT_KEY</A>,  
<A HREF="../../javax/swing/JComponent.html#ui">ui</A>,  
<A HREF="../../javax/swing/JComponent.html#UNDEFINED_CONDITION">UNDEFINED_CONDITION</A>,  
<A HREF="../../javax/swing/JComponent.html#WHEN_ANCESTOR_OF_FOCUSED_COMPONENT">WHEN_ANCESTOR_OF_FOCUSED_COMPONENT</A>,  
<A HREF="../../javax/swing/JComponent.html#WHEN_FOCUSED">WHEN_FOCUSED</A>,  
<A HREF="../../javax/swing/JComponent.html#WHEN_IN_FOCUSED_WINDOW">WHEN_IN_FOCUSED_WINDOW</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_java.awt.Component"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Fields inherited from class java.awt.Component</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>BOTTOM_ALIGNMENT,  
CENTER_ALIGNMENT,  
LEFT_ALIGNMENT,  
RIGHT_ALIGNMENT,  
TOP_ALIGNMENT</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#JEditorPane()">JEditorPane</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new JEditorPane.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#JEditorPane(java.lang.String)">JEditorPane</A></B>(java.lang.String&nbsp;url)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a JEditorPane based on a string containing a URL specification.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#JEditorPane(java.lang.String, java.lang.String)">JEditorPane</A></B>(java.lang.String&nbsp;type,
            java.lang.String&nbsp;text)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a JEditorPane that has been initialized to the given
 text.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#JEditorPane(java.net.URL)">JEditorPane</A></B>(java.net.URL&nbsp;initialPage)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a JEditorPane based on a specified URL for input.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#addHyperlinkListener(javax.swing.event.HyperlinkListener)">addHyperlinkListener</A></B>(<A HREF="../../javax/swing/event/HyperlinkListener.html">HyperlinkListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a hyperlink listener for notification of any changes, for example
 when a link is selected and entered.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#createDefaultEditorKit()">createDefaultEditorKit</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates the default editor kit (PlainEditorKit) for when
 the component is first created.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#createEditorKitForContentType(java.lang.String)">createEditorKitForContentType</A></B>(java.lang.String&nbsp;type)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a handler for the given type from the default registry
 of editor kits.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#fireHyperlinkUpdate(javax.swing.event.HyperlinkEvent)">fireHyperlinkUpdate</A></B>(<A HREF="../../javax/swing/event/HyperlinkEvent.html">HyperlinkEvent</A>&nbsp;e)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Notifies all listeners that have registered interest for
 notification on this event type.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the AccessibleContext associated with this JEditorPane.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getContentType()">getContentType</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the type of content that this editor 
 is currently set to deal with.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getEditorKit()">getEditorKit</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the currently installed kit for handling
 content.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getEditorKitForContentType(java.lang.String)">getEditorKitForContentType</A></B>(java.lang.String&nbsp;type)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the editor kit to use for the given type
 of content.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.net.URL</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getPage()">getPage</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the current url being displayed.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Dimension</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getPreferredSize()">getPreferredSize</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The preferred size for JEditorPane is slightly altered
 from the preferred size of the superclass.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getScrollableTracksViewportHeight()">getScrollableTracksViewportHeight</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if a viewport should always force the height of this 
 Scrollable to match the height of the viewport.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getScrollableTracksViewportWidth()">getScrollableTracksViewportWidth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if a viewport should always force the width of this 
 Scrollable to match the width of the viewport.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;java.io.InputStream</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getStream(java.net.URL)">getStream</A></B>(java.net.URL&nbsp;page)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetch a stream for the given url, which is about to 
 be loaded by the <code>setPage</code> method.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getText()">getText</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text contained in this TextComponent in terms of the
 content type of this editor.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getUIClassID()">getUIClassID</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the class ID for the UI.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#isManagingFocus()">isManagingFocus</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turns off tab traversal once focus gained.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#paramString()">paramString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of this JEditorPane.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#processComponentKeyEvent(java.awt.event.KeyEvent)">processComponentKeyEvent</A></B>(java.awt.event.KeyEvent&nbsp;e)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Make sure that TAB and Shift-TAB events get consumed, so that
 awt doesn't attempt focus traversal.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#read(java.io.InputStream, java.lang.Object)">read</A></B>(java.io.InputStream&nbsp;in,
     java.lang.Object&nbsp;desc)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method initializes from a stream.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#registerEditorKitForContentType(java.lang.String, java.lang.String)">registerEditorKitForContentType</A></B>(java.lang.String&nbsp;type,
                                java.lang.String&nbsp;classname)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Establishes the default bindings of type to name.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#registerEditorKitForContentType(java.lang.String, java.lang.String, java.lang.ClassLoader)">registerEditorKitForContentType</A></B>(java.lang.String&nbsp;type,
                                java.lang.String&nbsp;classname,
                                java.lang.ClassLoader&nbsp;loader)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Establishes the default bindings of type to name.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#removeHyperlinkListener(javax.swing.event.HyperlinkListener)">removeHyperlinkListener</A></B>(<A HREF="../../javax/swing/event/HyperlinkListener.html">HyperlinkListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a hyperlink listener.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#replaceSelection(java.lang.String)">replaceSelection</A></B>(java.lang.String&nbsp;content)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces the currently selected content with new content
 represented by the given string.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#scrollToReference(java.lang.String)">scrollToReference</A></B>(java.lang.String&nbsp;reference)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Scroll the view to the given reference location
 (i.e.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#setContentType(java.lang.String)">setContentType</A></B>(java.lang.String&nbsp;type)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the type of content that this editor
 handles.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#setEditorKit(javax.swing.text.EditorKit)">setEditorKit</A></B>(<A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A>&nbsp;kit)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the currently installed kit for handling
 content.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#setEditorKitForContentType(java.lang.String, javax.swing.text.EditorKit)">setEditorKitForContentType</A></B>(java.lang.String&nbsp;type,
                           <A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A>&nbsp;k)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Directly set the editor kit to use for the given type.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#setPage(java.lang.String)">setPage</A></B>(java.lang.String&nbsp;url)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current url being displayed.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#setPage(java.net.URL)">setPage</A></B>(java.net.URL&nbsp;page)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current url being displayed.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#setText(java.lang.String)">setText</A></B>(java.lang.String&nbsp;t)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the text of this TextComponent to the specified content,
 which is expected to be in the format of the content type of
 this editor.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.text.JTextComponent"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class javax.swing.text.<A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../javax/swing/text/JTextComponent.html#addCaretListener(javax.swing.event.CaretListener)">addCaretListener</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#addKeymap(java.lang.String, javax.swing.text.Keymap)">addKeymap</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#copy()">copy</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#cut()">cut</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#fireCaretUpdate(javax.swing.event.CaretEvent)">fireCaretUpdate</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getActions()">getActions</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getCaret()">getCaret</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getCaretColor()">getCaretColor</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getCaretPosition()">getCaretPosition</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getDisabledTextColor()">getDisabledTextColor</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getDocument()">getDocument</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getFocusAccelerator()">getFocusAccelerator</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getHighlighter()">getHighlighter</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getKeymap()">getKeymap</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getKeymap(java.lang.String)">getKeymap</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getMargin()">getMargin</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getPreferredScrollableViewportSize()">getPreferredScrollableViewportSize</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getScrollableBlockIncrement(java.awt.Rectangle, int, int)">getScrollableBlockIncrement</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getScrollableUnitIncrement(java.awt.Rectangle, int, int)">getScrollableUnitIncrement</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getSelectedText()">getSelectedText</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getSelectedTextColor()">getSelectedTextColor</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getSelectionColor()">getSelectionColor</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getSelectionEnd()">getSelectionEnd</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getSelectionStart()">getSelectionStart</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getText(int, int)">getText</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#getUI()">getUI</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#isEditable()">isEditable</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#isFocusTraversable()">isFocusTraversable</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#isOpaque()">isOpaque</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#loadKeymap(javax.swing.text.Keymap, javax.swing.text.JTextComponent.KeyBinding[], javax.swing.Action[])">loadKeymap</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#modelToView(int)">modelToView</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#moveCaretPosition(int)">moveCaretPosition</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#paste()">paste</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#read(java.io.Reader, java.lang.Object)">read</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#removeCaretListener(javax.swing.event.CaretListener)">removeCaretListener</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#removeKeymap(java.lang.String)">removeKeymap</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#removeNotify()">removeNotify</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#select(int, int)">select</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#selectAll()">selectAll</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setCaret(javax.swing.text.Caret)">setCaret</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setCaretColor(java.awt.Color)">setCaretColor</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setCaretPosition(int)">setCaretPosition</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setDisabledTextColor(java.awt.Color)">setDisabledTextColor</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setDocument(javax.swing.text.Document)">setDocument</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setEditable(boolean)">setEditable</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setEnabled(boolean)">setEnabled</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setFocusAccelerator(char)">setFocusAccelerator</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setHighlighter(javax.swing.text.Highlighter)">setHighlighter</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setKeymap(javax.swing.text.Keymap)">setKeymap</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setMargin(java.awt.Insets)">setMargin</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setOpaque(boolean)">setOpaque</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setSelectedTextColor(java.awt.Color)">setSelectedTextColor</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setSelectionColor(java.awt.Color)">setSelectionColor</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setSelectionEnd(int)">setSelectionEnd</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setSelectionStart(int)">setSelectionStart</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setUI(javax.swing.plaf.TextUI)">setUI</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#updateUI()">updateUI</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#viewToModel(java.awt.Point)">viewToModel</A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#write(java.io.Writer)">write</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.JComponent"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class javax.swing.<A HREF="../../javax/swing/JComponent.html">JComponent</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../javax/swing/JComponent.html#addAncestorListener(javax.swing.event.AncestorListener)">addAncestorListener</A>, 
<A HREF="../../javax/swing/JComponent.html#addNotify()">addNotify</A>, 
<A HREF="../../javax/swing/JComponent.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, 
<A HREF="../../javax/swing/JComponent.html#addVetoableChangeListener(java.beans.VetoableChangeListener)">addVetoableChangeListener</A>, 
<A HREF="../../javax/swing/JComponent.html#computeVisibleRect(java.awt.Rectangle)">computeVisibleRect</A>, 
<A HREF="../../javax/swing/JComponent.html#contains(int, int)">contains</A>, 
<A HREF="../../javax/swing/JComponent.html#createToolTip()">createToolTip</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, boolean, boolean)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, byte, byte)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, char, char)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, double, double)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, float, float)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, int, int)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, long, long)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, short, short)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object)">fireVetoableChange</A>, 
<A HREF="../../javax/swing/JComponent.html#getActionForKeyStroke(javax.swing.KeyStroke)">getActionForKeyStroke</A>, 
<A HREF="../../javax/swing/JComponent.html#getAlignmentX()">getAlignmentX</A>, 
<A HREF="../../javax/swing/JComponent.html#getAlignmentY()">getAlignmentY</A>, 
<A HREF="../../javax/swing/JComponent.html#getAutoscrolls()">getAutoscrolls</A>, 
<A HREF="../../javax/swing/JComponent.html#getBorder()">getBorder</A>, 
<A HREF="../../javax/swing/JComponent.html#getBounds(java.awt.Rectangle)">getBounds</A>, 
<A HREF="../../javax/swing/JComponent.html#getClientProperty(java.lang.Object)">getClientProperty</A>, 
<A HREF="../../javax/swing/JComponent.html#getComponentGraphics(java.awt.Graphics)">getComponentGraphics</A>, 
<A HREF="../../javax/swing/JComponent.html#getConditionForKeyStroke(javax.swing.KeyStroke)">getConditionForKeyStroke</A>, 
<A HREF="../../javax/swing/JComponent.html#getDebugGraphicsOptions()">getDebugGraphicsOptions</A>, 
<A HREF="../../javax/swing/JComponent.html#getGraphics()">getGraphics</A>, 
<A HREF="../../javax/swing/JComponent.html#getHeight()">getHeight</A>, 
<A HREF="../../javax/swing/JComponent.html#getInsets()">getInsets</A>, 
<A HREF="../../javax/swing/JComponent.html#getInsets(java.awt.Insets)">getInsets</A>, 
<A HREF="../../javax/swing/JComponent.html#getLocation(java.awt.Point)">getLocation</A>, 
<A HREF="../../javax/swing/JComponent.html#getMaximumSize()">getMaximumSize</A>, 
<A HREF="../../javax/swing/JComponent.html#getMinimumSize()">getMinimumSize</A>, 
<A HREF="../../javax/swing/JComponent.html#getNextFocusableComponent()">getNextFocusableComponent</A>, 
<A HREF="../../javax/swing/JComponent.html#getRegisteredKeyStrokes()">getRegisteredKeyStrokes</A>, 
<A HREF="../../javax/swing/JComponent.html#getRootPane()">getRootPane</A>, 
<A HREF="../../javax/swing/JComponent.html#getSize(java.awt.Dimension)">getSize</A>, 
<A HREF="../../javax/swing/JComponent.html#getToolTipLocation(java.awt.event.MouseEvent)">getToolTipLocation</A>, 
<A HREF="../../javax/swing/JComponent.html#getToolTipText()">getToolTipText</A>, 
<A HREF="../../javax/swing/JComponent.html#getToolTipText(java.awt.event.MouseEvent)">getToolTipText</A>, 
<A HREF="../../javax/swing/JComponent.html#getTopLevelAncestor()">getTopLevelAncestor</A>, 
<A HREF="../../javax/swing/JComponent.html#getVisibleRect()">getVisibleRect</A>, 
<A HREF="../../javax/swing/JComponent.html#getWidth()">getWidth</A>, 
<A HREF="../../javax/swing/JComponent.html#getX()">getX</A>, 
<A HREF="../../javax/swing/JComponent.html#getY()">getY</A>, 
<A HREF="../../javax/swing/JComponent.html#grabFocus()">grabFocus</A>, 
<A HREF="../../javax/swing/JComponent.html#hasFocus()">hasFocus</A>, 
<A HREF="../../javax/swing/JComponent.html#isDoubleBuffered()">isDoubleBuffered</A>, 
<A HREF="../../javax/swing/JComponent.html#isFocusCycleRoot()">isFocusCycleRoot</A>, 
<A HREF="../../javax/swing/JComponent.html#isLightweightComponent(java.awt.Component)">isLightweightComponent</A>, 
<A HREF="../../javax/swing/JComponent.html#isOptimizedDrawingEnabled()">isOptimizedDrawingEnabled</A>, 
<A HREF="../../javax/swing/JComponent.html#isPaintingTile()">isPaintingTile</A>, 
<A HREF="../../javax/swing/JComponent.html#isRequestFocusEnabled()">isRequestFocusEnabled</A>, 
<A HREF="../../javax/swing/JComponent.html#isValidateRoot()">isValidateRoot</A>, 
<A HREF="../../javax/swing/JComponent.html#paint(java.awt.Graphics)">paint</A>, 
<A HREF="../../javax/swing/JComponent.html#paintBorder(java.awt.Graphics)">paintBorder</A>, 
<A HREF="../../javax/swing/JComponent.html#paintChildren(java.awt.Graphics)">paintChildren</A>, 
<A HREF="../../javax/swing/JComponent.html#paintComponent(java.awt.Graphics)">paintComponent</A>, 
<A HREF="../../javax/swing/JComponent.html#paintImmediately(int, int, int, int)">paintImmediately</A>, 
<A HREF="../../javax/swing/JComponent.html#paintImmediately(java.awt.Rectangle)">paintImmediately</A>, 
<A HREF="../../javax/swing/JComponent.html#processFocusEvent(java.awt.event.FocusEvent)">processFocusEvent</A>, 
<A HREF="../../javax/swing/JComponent.html#processKeyEvent(java.awt.event.KeyEvent)">processKeyEvent</A>, 
<A HREF="../../javax/swing/JComponent.html#processMouseMotionEvent(java.awt.event.MouseEvent)">processMouseMotionEvent</A>, 
<A HREF="../../javax/swing/JComponent.html#putClientProperty(java.lang.Object, java.lang.Object)">putClientProperty</A>, 
<A HREF="../../javax/swing/JComponent.html#registerKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int)">registerKeyboardAction</A>, 
<A HREF="../../javax/swing/JComponent.html#registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)">registerKeyboardAction</A>, 
<A HREF="../../javax/swing/JComponent.html#removeAncestorListener(javax.swing.event.AncestorListener)">removeAncestorListener</A>, 
<A HREF="../../javax/swing/JComponent.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A>, 
<A HREF="../../javax/swing/JComponent.html#removeVetoableChangeListener(java.beans.VetoableChangeListener)">removeVetoableChangeListener</A>, 
<A HREF="../../javax/swing/JComponent.html#repaint(long, int, int, int, int)">repaint</A>, 
<A HREF="../../javax/swing/JComponent.html#repaint(java.awt.Rectangle)">repaint</A>, 
<A HREF="../../javax/swing/JComponent.html#requestDefaultFocus()">requestDefaultFocus</A>, 
<A HREF="../../javax/swing/JComponent.html#requestFocus()">requestFocus</A>, 
<A HREF="../../javax/swing/JComponent.html#resetKeyboardActions()">resetKeyboardActions</A>, 
<A HREF="../../javax/swing/JComponent.html#reshape(int, int, int, int)">reshape</A>, 
<A HREF="../../javax/swing/JComponent.html#revalidate()">revalidate</A>, 
<A HREF="../../javax/swing/JComponent.html#scrollRectToVisible(java.awt.Rectangle)">scrollRectToVisible</A>, 
<A HREF="../../javax/swing/JComponent.html#setAlignmentX(float)">setAlignmentX</A>, 
<A HREF="../../javax/swing/JComponent.html#setAlignmentY(float)">setAlignmentY</A>, 
<A HREF="../../javax/swing/JComponent.html#setAutoscrolls(boolean)">setAutoscrolls</A>, 
<A HREF="../../javax/swing/JComponent.html#setBackground(java.awt.Color)">setBackground</A>, 
<A HREF="../../javax/swing/JComponent.html#setBorder(javax.swing.border.Border)">setBorder</A>, 
<A HREF="../../javax/swing/JComponent.html#setDebugGraphicsOptions(int)">setDebugGraphicsOptions</A>, 
<A HREF="../../javax/swing/JComponent.html#setDoubleBuffered(boolean)">setDoubleBuffered</A>, 
<A HREF="../../javax/swing/JComponent.html#setFont(java.awt.Font)">setFont</A>, 
<A HREF="../../javax/swing/JComponent.html#setForeground(java.awt.Color)">setForeground</A>, 
<A HREF="../../javax/swing/JComponent.html#setMaximumSize(java.awt.Dimension)">setMaximumSize</A>, 
<A HREF="../../javax/swing/JComponent.html#setMinimumSize(java.awt.Dimension)">setMinimumSize</A>, 
<A HREF="../../javax/swing/JComponent.html#setNextFocusableComponent(java.awt.Component)">setNextFocusableComponent</A>, 
<A HREF="../../javax/swing/JComponent.html#setPreferredSize(java.awt.Dimension)">setPreferredSize</A>, 
<A HREF="../../javax/swing/JComponent.html#setRequestFocusEnabled(boolean)">setRequestFocusEnabled</A>, 
<A HREF="../../javax/swing/JComponent.html#setToolTipText(java.lang.String)">setToolTipText</A>, 
<A HREF="../../javax/swing/JComponent.html#setUI(javax.swing.plaf.ComponentUI)">setUI</A>, 
<A HREF="../../javax/swing/JComponent.html#setVisible(boolean)">setVisible</A>, 
<A HREF="../../javax/swing/JComponent.html#unregisterKeyboardAction(javax.swing.KeyStroke)">unregisterKeyboardAction</A>, 
<A HREF="../../javax/swing/JComponent.html#update(java.awt.Graphics)">update</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.awt.Container"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.awt.Container</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>add, 
add, 
add, 
add, 
add, 
addContainerListener, 
addImpl, 
countComponents, 
deliverEvent, 
doLayout, 
getComponent, 
getComponentAt, 
getComponentAt, 
getComponentCount, 
getComponents, 
getLayout, 
insets, 
invalidate, 
isAncestorOf, 
layout, 
list, 
list, 
locate, 
minimumSize, 
paintComponents, 
preferredSize, 
print, 
printComponents, 
processContainerEvent, 
processEvent, 
remove, 
remove, 
removeAll, 
removeContainerListener, 
setLayout, 
validate, 
validateTree</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.awt.Component"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.awt.Component</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>action, 
add, 
addComponentListener, 
addFocusListener, 
addKeyListener, 
addMouseListener, 
addMouseMotionListener, 
bounds, 
checkImage, 
checkImage, 
contains, 
createImage, 
createImage, 
disable, 
disableEvents, 
dispatchEvent, 
enable, 
enable, 
enableEvents, 
getBackground, 
getBounds, 
getColorModel, 
getCursor, 
getFont, 
getFontMetrics, 
getForeground, 
getLocale, 
getLocation, 
getLocationOnScreen, 
getName, 
getParent, 
getPeer, 
getSize, 
getToolkit, 
getTreeLock, 
gotFocus, 
handleEvent, 
hide, 
imageUpdate, 
inside, 
isEnabled, 
isShowing, 
isValid, 
isVisible, 
keyDown, 
keyUp, 
list, 
list, 
list, 
location, 
lostFocus, 
mouseDown, 
mouseDrag, 
mouseEnter, 
mouseExit, 
mouseMove, 
mouseUp, 
move, 
nextFocus, 
paintAll, 
postEvent, 
prepareImage, 
prepareImage, 
printAll, 
processComponentEvent, 
processMouseEvent, 
remove, 
removeComponentListener, 
removeFocusListener, 
removeKeyListener, 
removeMouseListener, 
removeMouseMotionListener, 
repaint, 
repaint, 
repaint, 
resize, 
resize, 
setBounds, 
setBounds, 
setCursor, 
setLocale, 
setLocation, 
setLocation, 
setName, 
setSize, 
setSize, 
show, 
show, 
size, 
toString, 
transferFocus</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
wait, 
wait, 
wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="JEditorPane()"><!-- --></A><H3>
JEditorPane</H3>
<PRE>
public <B>JEditorPane</B>()</PRE>
<DL>
<DD>Constructs a new JEditorPane.  The document model is set to null.</DL>
<HR>

<A NAME="JEditorPane(java.net.URL)"><!-- --></A><H3>
JEditorPane</H3>
<PRE>
public <B>JEditorPane</B>(java.net.URL&nbsp;initialPage)
            throws java.io.IOException</PRE>
<DL>
<DD>Creates a JEditorPane based on a specified URL for input.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>initialPage</CODE> - the URL<DT><B>Throws:</B><DD>java.io.IOException - if the URL is null or cannot be accessed</DL>
</DD>
</DL>
<HR>

<A NAME="JEditorPane(java.lang.String)"><!-- --></A><H3>
JEditorPane</H3>
<PRE>
public <B>JEditorPane</B>(java.lang.String&nbsp;url)
            throws java.io.IOException</PRE>
<DL>
<DD>Creates a JEditorPane based on a string containing a URL specification.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the URL<DT><B>Throws:</B><DD>java.io.IOException - if the URL is null or cannot be accessed</DL>
</DD>
</DL>
<HR>

<A NAME="JEditorPane(java.lang.String, java.lang.String)"><!-- --></A><H3>
JEditorPane</H3>
<PRE>
public <B>JEditorPane</B>(java.lang.String&nbsp;type,
                   java.lang.String&nbsp;text)</PRE>
<DL>
<DD>Creates a JEditorPane that has been initialized to the given
 text.  This is a convenience constructor that calls the
 <code>setContentType</code> and <code>setText</code> methods.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - mime type of the given text.<DD><CODE>text</CODE> - the text to initialize with.</DL>
</DD>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="addHyperlinkListener(javax.swing.event.HyperlinkListener)"><!-- --></A><H3>
addHyperlinkListener</H3>
<PRE>
public void <B>addHyperlinkListener</B>(<A HREF="../../javax/swing/event/HyperlinkListener.html">HyperlinkListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Adds a hyperlink listener for notification of any changes, for example
 when a link is selected and entered.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener</DL>
</DD>
</DL>
<HR>

<A NAME="removeHyperlinkListener(javax.swing.event.HyperlinkListener)"><!-- --></A><H3>
removeHyperlinkListener</H3>
<PRE>
public void <B>removeHyperlinkListener</B>(<A HREF="../../javax/swing/event/HyperlinkListener.html">HyperlinkListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Removes a hyperlink listener.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener</DL>
</DD>
</DL>
<HR>

<A NAME="fireHyperlinkUpdate(javax.swing.event.HyperlinkEvent)"><!-- --></A><H3>
fireHyperlinkUpdate</H3>
<PRE>
public void <B>fireHyperlinkUpdate</B>(<A HREF="../../javax/swing/event/HyperlinkEvent.html">HyperlinkEvent</A>&nbsp;e)</PRE>
<DL>
<DD>Notifies all listeners that have registered interest for
 notification on this event type.  This is normally called
 by the currently installed EditorKit if a content type
 that supports hyperlinks is currently active and there
 was activity with a link.  The listener list is processed
 last to first.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>e</CODE> - the event<DT><B>See Also: </B><DD><A HREF="../../javax/swing/event/EventListenerList.html"><CODE>EventListenerList</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setPage(java.net.URL)"><!-- --></A><H3>
setPage</H3>
<PRE>
public void <B>setPage</B>(java.net.URL&nbsp;page)
             throws java.io.IOException</PRE>
<DL>
<DD>Sets the current url being displayed.  The content type of the
 pane is set, and if the editor kit for the pane is non-null, then
 a new default document is created and the URL is read into it.
 If the url contains and reference location, the location will
 be scrolled to by calling the <code>scrollToReference</code> 
 method.  If the desired URL is not the one currently being
 displayed, the <code>getStream</code> method is called to
 give subclasses control over the stream provided.
 <p>
 This may load either synchronously or asynchronously
 depending upon the document returned by the EditorKit.
 If the Document is of type AbstractDocument and has
 a value returned by 
 <code>AbstractDocument.getAsynchronousLoadPriority</code>
 that is greater than or equal to zero, the page will be
 loaded on a seperate thread using that priority.
 <p>
 If the document is loaded synchronously, it will be
 filled in with the stream prior to being installed into
 the editor with a call to <code>setDocument</code>, which
 is bound and will fire a property change event.  If an
 IOException is thrown the partially loaded document will
 be discarded and neither the document or page property
 change events will be fired.  If the document is 
 successfully loaded and installed, a view will be
 built for it by the UI which will then be scrolled if 
 necessary, and then the page property change event
 will be fired.
 <p>
 If the document is loaded asynchronously, the document
 will be installed into the editor immediately using a
 call to <code>setDocument</code> which will fire a 
 document property change event, then a thread will be
 created which will begin doing the actual loading.  
 In this case, the page property change event will not be 
 fired by the call to this method directly, but rather will be 
 fired when the thread doing the loading has finished.
 Since the calling thread can not throw an IOException in
 the event of failure on the other thread, the page 
 property change event will be fired when the other 
 thread is done whether the load was successful or not.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>page</CODE> - the URL of the page<DT><B>Throws:</B><DD>java.io.IOException - for a null or invalid page specification,
  or exception from the stream being read.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JEditorPane.html#getPage()"><CODE>getPage()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="read(java.io.InputStream, java.lang.Object)"><!-- --></A><H3>
read</H3>
<PRE>
public void <B>read</B>(java.io.InputStream&nbsp;in,
                 java.lang.Object&nbsp;desc)
          throws java.io.IOException</PRE>
<DL>
<DD>This method initializes from a stream.  If
 the kit is set to be of type HTMLEditorKit,
 and the desc parameter is an HTMLDocument,
 then it invokes the HTMLEditorKit to initiate
 the read. Otherwise it calls the superclass
 method which loads the model as plain text.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>in</CODE> - The stream to read from<DD><CODE>desc</CODE> - An object describing the stream.<DT><B>Throws:</B><DD>java.io.IOException - as thrown by the stream being
  used to initialize.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/text/JTextComponent.html#read(java.io.Reader, java.lang.Object)"><CODE>JTextComponent.read(java.io.Reader, java.lang.Object)</CODE></A>, 
<A HREF="../../javax/swing/text/JTextComponent.html#setDocument(javax.swing.text.Document)"><CODE>JTextComponent.setDocument(javax.swing.text.Document)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getStream(java.net.URL)"><!-- --></A><H3>
getStream</H3>
<PRE>
protected java.io.InputStream <B>getStream</B>(java.net.URL&nbsp;page)
                                 throws java.io.IOException</PRE>
<DL>
<DD>Fetch a stream for the given url, which is about to 
 be loaded by the <code>setPage</code> method.  By
 default, this simply opens the url and returns the
 stream.  This can be reimplemented to do useful things
 like fetch the stream from a cache, monitor the progress
 of the stream, etc.
 <p>
 This method is expected to have the the side effect of
 establising the content type, and therefore setting the
 appropriate EditorKit to use for loading the stream.</DL>
<HR>

<A NAME="scrollToReference(java.lang.String)"><!-- --></A><H3>
scrollToReference</H3>
<PRE>
protected void <B>scrollToReference</B>(java.lang.String&nbsp;reference)</PRE>
<DL>
<DD>Scroll the view to the given reference location
 (i.e. the value returned by the <code>UL.getRef</code>
 method for the url being displayed).  By default, this
 method only knows how to locate a reference in an
 HTMLDocument.  The implementation calls the
 <code>scrollRectToVisible</code> method to
 accomplish the actual scrolling.  If scrolling to a
 reference location is needed for document types other
 than html, this method should be reimplemented.
 This method will have no effect if the component
 is not visible.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>reference</CODE> - the named location to scroll to.</DL>
</DD>
</DL>
<HR>

<A NAME="getPage()"><!-- --></A><H3>
getPage</H3>
<PRE>
public java.net.URL <B>getPage</B>()</PRE>
<DL>
<DD>Gets the current url being displayed.  If a URL was 
 not specified in the creation of the document, this
 will return null, and relative URL's will not be 
 resolved.<DD><DL>
<DT><B>Returns:</B><DD>the URL</DL>
</DD>
</DL>
<HR>

<A NAME="setPage(java.lang.String)"><!-- --></A><H3>
setPage</H3>
<PRE>
public void <B>setPage</B>(java.lang.String&nbsp;url)
             throws java.io.IOException</PRE>
<DL>
<DD>Sets the current url being displayed.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the URL for display<DT><B>Throws:</B><DD>java.io.IOException - for a null or invalid URL specification</DL>
</DD>
</DL>
<HR>

<A NAME="getUIClassID()"><!-- --></A><H3>
getUIClassID</H3>
<PRE>
public java.lang.String <B>getUIClassID</B>()</PRE>
<DL>
<DD>Gets the class ID for the UI.<DD><DL>
<DT><B>Returns:</B><DD>the ID ("EditorPaneUI")<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#getUIClassID()">getUIClassID</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#getUIClassID()"><CODE>JComponent.getUIClassID()</CODE></A>, 
<A HREF="../../javax/swing/UIDefaults.html#getUI(javax.swing.JComponent)"><CODE>UIDefaults.getUI(javax.swing.JComponent)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="createDefaultEditorKit()"><!-- --></A><H3>
createDefaultEditorKit</H3>
<PRE>
protected <A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A> <B>createDefaultEditorKit</B>()</PRE>
<DL>
<DD>Creates the default editor kit (PlainEditorKit) for when
 the component is first created.<DD><DL>
<DT><B>Returns:</B><DD>the editor kit</DL>
</DD>
</DL>
<HR>

<A NAME="getEditorKit()"><!-- --></A><H3>
getEditorKit</H3>
<PRE>
public final <A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A> <B>getEditorKit</B>()</PRE>
<DL>
<DD>Fetches the currently installed kit for handling
 content.  createDefaultEditorKit() is called to set up a default
 if necessary.<DD><DL>
<DT><B>Returns:</B><DD>the editor kit</DL>
</DD>
</DL>
<HR>

<A NAME="getContentType()"><!-- --></A><H3>
getContentType</H3>
<PRE>
public final java.lang.String <B>getContentType</B>()</PRE>
<DL>
<DD>Gets the type of content that this editor 
 is currently set to deal with.  This is 
 defined to be the type associated with the
 currently installed EditorKit.<DD><DL>
<DT><B>Returns:</B><DD>the content type, null if no editor kit set</DL>
</DD>
</DL>
<HR>

<A NAME="setContentType(java.lang.String)"><!-- --></A><H3>
setContentType</H3>
<PRE>
public final void <B>setContentType</B>(java.lang.String&nbsp;type)</PRE>
<DL>
<DD>Sets the type of content that this editor
 handles.  This calls <code>getEditorKitForContentType</code>,
 and then <code>setEditorKit</code> if an editor kit can
 be successfully located.  This is mostly convenience method
 that can be used as an alternative to calling 
 <code>setEditorKit</code> directly.
 <p>
 If there is a charset definition specified as a parameter
 of the content type specification, it will be used when
 loading input streams using the associated EditorKit.
 For example if the type is specified as 
 <code>text/html; charset=EUC-JP</code> the content
 will be loaded using the EditorKit registered for
 <code>text/html</code> and the Reader provided to
 the EditorKit to load unicode into the document will
 use the <code>EUC-JP</code> charset for translating
 to unicode.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - the non-null mime type for the content editing
   support.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JEditorPane.html#getContentType()"><CODE>getContentType()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setEditorKit(javax.swing.text.EditorKit)"><!-- --></A><H3>
setEditorKit</H3>
<PRE>
public void <B>setEditorKit</B>(<A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A>&nbsp;kit)</PRE>
<DL>
<DD>Sets the currently installed kit for handling
 content.  This is the bound property that
 establishes the content type of the editor.
 Any old kit is first deinstalled, then if kit is non-null,
 the new kit is installed, and a default document created for it.
 A PropertyChange event ("editorKit") is always fired when
 setEditorKit() is called.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>kit</CODE> - the desired editor behavior.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JEditorPane.html#getEditorKit()"><CODE>getEditorKit()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getEditorKitForContentType(java.lang.String)"><!-- --></A><H3>
getEditorKitForContentType</H3>
<PRE>
public <A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A> <B>getEditorKitForContentType</B>(java.lang.String&nbsp;type)</PRE>
<DL>
<DD>Fetches the editor kit to use for the given type
 of content.  This is called when a type is requested
 that doesn't match the currently installed type.
 If the component doesn't have an EditorKit registered
 for the given type, it will try to create an 
 EditorKit from the default EditorKit registry.
 If that fails, a PlainEditorKit is used on the
 assumption that all text documents can be represented
 as plain text.
 <p>
 This method can be reimplemented to use some
 other kind of type registry.  This can
 be reimplemented to use the Java Activation
 Framework for example.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - the non-null content type<DT><B>Returns:</B><DD>the editor kit</DL>
</DD>
</DL>
<HR>

<A NAME="setEditorKitForContentType(java.lang.String, javax.swing.text.EditorKit)"><!-- --></A><H3>
setEditorKitForContentType</H3>
<PRE>
public void <B>setEditorKitForContentType</B>(java.lang.String&nbsp;type,
                                       <A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A>&nbsp;k)</PRE>
<DL>
<DD>Directly set the editor kit to use for the given type.  A 
 look-and-feel implementation might use this in conjunction
 with createEditorKitForContentType to install handlers for
 content types with a look-and-feel bias.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - the non-null content type<DD><CODE>k</CODE> - the editor kit to be set</DL>
</DD>
</DL>
<HR>

<A NAME="replaceSelection(java.lang.String)"><!-- --></A><H3>
replaceSelection</H3>
<PRE>
public void <B>replaceSelection</B>(java.lang.String&nbsp;content)</PRE>
<DL>
<DD>Replaces the currently selected content with new content
 represented by the given string.  If there is no selection
 this amounts to an insert of the given text.  If there
 is no replacement text this amounts to a removal of the
 current selection.  The replacement text will have the
 attributes currently defined for input.  If the document is not
 editable, beep and return.  Then if the document is null, do nothing.
 If the content to insert is null or empty, ignore it.
 <p>
 This method is thread safe, although most Swing methods
 are not. Please see 
 <A HREF="http://java.sun.com/products/jfc/swingdoc-archive/threads.html">Threads
 and Swing</A> for more information.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>content</CODE> - the content to replace the selection with<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/text/JTextComponent.html#replaceSelection(java.lang.String)">replaceSelection</A> in class <A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="createEditorKitForContentType(java.lang.String)"><!-- --></A><H3>
createEditorKitForContentType</H3>
<PRE>
public static <A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A> <B>createEditorKitForContentType</B>(java.lang.String&nbsp;type)</PRE>
<DL>
<DD>Create a handler for the given type from the default registry
 of editor kits.  The registry is created if necessary.  It the
 registered class has not yet been loaded, an attempt
 is made to dynamically load the prototype of the kit for the
 given type.  If the type was registered with a ClassLoader,
 that ClassLoader will be used to load the prototype.  If there
 was no registered ClassLoader, Class.forName will be used to
 load the prototype.
 <p>
 Once a prototype EditorKit instance is successfully located,
 it is cloned and the clone is returned.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - the content type<DT><B>Returns:</B><DD>the editor kit, or null if one cannot be created</DL>
</DD>
</DL>
<HR>

<A NAME="registerEditorKitForContentType(java.lang.String, java.lang.String)"><!-- --></A><H3>
registerEditorKitForContentType</H3>
<PRE>
public static void <B>registerEditorKitForContentType</B>(java.lang.String&nbsp;type,
                                                   java.lang.String&nbsp;classname)</PRE>
<DL>
<DD>Establishes the default bindings of type to name.  
 The class will be dynamically loaded later when actually
 needed, and can be safely changed before attempted uses
 to avoid loading unwanted classes.  The prototype 
 EditorKit will be loaded with Class.forName when
 registered with this method.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - the non-null content type<DD><CODE>classname</CODE> - the class to load later</DL>
</DD>
</DL>
<HR>

<A NAME="registerEditorKitForContentType(java.lang.String, java.lang.String, java.lang.ClassLoader)"><!-- --></A><H3>
registerEditorKitForContentType</H3>
<PRE>
public static void <B>registerEditorKitForContentType</B>(java.lang.String&nbsp;type,
                                                   java.lang.String&nbsp;classname,
                                                   java.lang.ClassLoader&nbsp;loader)</PRE>
<DL>
<DD>Establishes the default bindings of type to name.  
 The class will be dynamically loaded later when actually
 needed using the given ClassLoader, and can be safely changed 
 before attempted uses to avoid loading unwanted classes.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - the non-null content type<DD><CODE>classname</CODE> - the class to load later<DD><CODE>loader</CODE> - the ClassLoader to use to load the name</DL>
</DD>
</DL>
<HR>

<A NAME="getPreferredSize()"><!-- --></A><H3>
getPreferredSize</H3>
<PRE>
public java.awt.Dimension <B>getPreferredSize</B>()</PRE>
<DL>
<DD>The preferred size for JEditorPane is slightly altered
 from the preferred size of the superclass.  If the size
 of the viewport has become smaller than the minimum size
 of the component, the Scrollable definition for tracking
 width or height will turn to false.  The default viewport
 layout will give the preferred size, and that is not desired
 in the case where the scrollable is tracking.  In that case
 the <em>normal</em> preferred size is adjusted to the
 minimum size.  This allows things like html tables to
 shrink down to their minimum size and then be laid out at
 their minimum size, refusing to shrink any further.<DD><DL>
<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#getPreferredSize()">getPreferredSize</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="isManagingFocus()"><!-- --></A><H3>
isManagingFocus</H3>
<PRE>
public boolean <B>isManagingFocus</B>()</PRE>
<DL>
<DD>Turns off tab traversal once focus gained.<DD><DL>
<DT><B>Returns:</B><DD>true, to indicate that the focus is being managed<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#isManagingFocus()">isManagingFocus</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="processComponentKeyEvent(java.awt.event.KeyEvent)"><!-- --></A><H3>
processComponentKeyEvent</H3>
<PRE>
protected void <B>processComponentKeyEvent</B>(java.awt.event.KeyEvent&nbsp;e)</PRE>
<DL>
<DD>Make sure that TAB and Shift-TAB events get consumed, so that
 awt doesn't attempt focus traversal.<DD><DL>
<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/text/JTextComponent.html#processComponentKeyEvent(java.awt.event.KeyEvent)">processComponentKeyEvent</A> in class <A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="setText(java.lang.String)"><!-- --></A><H3>
setText</H3>
<PRE>
public void <B>setText</B>(java.lang.String&nbsp;t)</PRE>
<DL>
<DD>Sets the text of this TextComponent to the specified content,
 which is expected to be in the format of the content type of
 this editor.  For example, if the type is set to <code>text/html</code>
 the string should be specified in terms of html.  This is implemented
 to call <code>JTextComponent.read</code> with a 
 <code>StringReader</code>[
 <p>
 This method is thread safe, although most Swing methods
 are not. Please see 
 <A HREF="http://java.sun.com/products/jfc/swingdoc-archive/threads.html">Threads
 and Swing</A> for more information.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>t</CODE> - the new text to be set<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/text/JTextComponent.html#setText(java.lang.String)">setText</A> in class <A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JEditorPane.html#getText()"><CODE>getText()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getText()"><!-- --></A><H3>
getText</H3>
<PRE>
public java.lang.String <B>getText</B>()</PRE>
<DL>
<DD>Returns the text contained in this TextComponent in terms of the
 content type of this editor.  If an exception is thrown while
 attempting to retrieve the text, null will be returned.  This
 is implemented to call <code>JTextComponent.write</code> with
 a <code>StringWriter</code>.<DD><DL>
<DT><B>Returns:</B><DD>the text<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/text/JTextComponent.html#getText()">getText</A> in class <A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JEditorPane.html#setText(java.lang.String)"><CODE>setText(java.lang.String)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getScrollableTracksViewportWidth()"><!-- --></A><H3>
getScrollableTracksViewportWidth</H3>
<PRE>
public boolean <B>getScrollableTracksViewportWidth</B>()</PRE>
<DL>
<DD>Returns true if a viewport should always force the width of this 
 Scrollable to match the width of the viewport.<DD><DL>
<DT><B>Returns:</B><DD>true if a viewport should force the Scrollables width to
 match its own.<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/text/JTextComponent.html#getScrollableTracksViewportWidth()">getScrollableTracksViewportWidth</A> in class <A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="getScrollableTracksViewportHeight()"><!-- --></A><H3>
getScrollableTracksViewportHeight</H3>
<PRE>
public boolean <B>getScrollableTracksViewportHeight</B>()</PRE>
<DL>
<DD>Returns true if a viewport should always force the height of this 
 Scrollable to match the height of the viewport.<DD><DL>
<DT><B>Returns:</B><DD>true if a viewport should force the Scrollables height to
 match its own.<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/text/JTextComponent.html#getScrollableTracksViewportHeight()">getScrollableTracksViewportHeight</A> in class <A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="paramString()"><!-- --></A><H3>
paramString</H3>
<PRE>
protected java.lang.String <B>paramString</B>()</PRE>
<DL>
<DD>Returns a string representation of this JEditorPane. This method 
 is intended to be used only for debugging purposes, and the 
 content and format of the returned string may vary between      
 implementations. The returned string may be empty but may not 
 be <code>null</code>.
 <P>
 Overriding paramString() to provide information about the
 specific new aspects of the JFC components.<DD><DL>
<DT><B>Returns:</B><DD>a string representation of this JEditorPane.<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/text/JTextComponent.html#paramString()">paramString</A> in class <A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="getAccessibleContext()"><!-- --></A><H3>
getAccessibleContext</H3>
<PRE>
public <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A> <B>getAccessibleContext</B>()</PRE>
<DL>
<DD>Get the AccessibleContext associated with this JEditorPane.  A new
 context is created if necessary.<DD><DL>
<DT><B>Returns:</B><DD>the AccessibleContext of this JEditorPane<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/text/JTextComponent.html#getAccessibleContext()">getAccessibleContext</A> in class <A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/JEditorPane.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../javax/swing/JDialog.AccessibleJDialog.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../javax/swing/JEditorPane.AccessibleJEditorPane.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="JEditorPane.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.text.JTextComponent">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>Java is a trademark or registered trademark of Sun Microsystems,  Inc. in the US and other countries.<br>Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font>
</BODY>
</HTML>
