<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 06:01:18 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  JTextComponent
</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/JTextComponent.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/text/IconView.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.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="JTextComponent.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="#field_summary">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;<A HREF="#field_detail">FIELD</A>&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.text</FONT>
<BR>
Class  JTextComponent</H2>
<PRE>
java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--<A HREF="../../../javax/swing/JComponent.html">javax.swing.JComponent</A>
                    |
                    +--<B>javax.swing.text.JTextComponent</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../javax/swing/JEditorPane.html">JEditorPane</A>, <A HREF="../../../javax/swing/JTextArea.html">JTextArea</A>, <A HREF="../../../javax/swing/JTextField.html">JTextField</A></DD>
</DL>
<HR>
<DL>
<DT>public abstract class <B>JTextComponent</B><DT>extends <A HREF="../../../javax/swing/JComponent.html">JComponent</A><DT>implements <A HREF="../../../javax/swing/Scrollable.html">Scrollable</A>, <A HREF="../../../javax/accessibility/Accessible.html">Accessible</A></DL>

<P>
JTextComponent is the base class for swing text components.  It
 tries to be compatible with the java.awt.TextComponent class
 where it can reasonably do so.  Also provided are other services
 for additional flexibility (beyond the pluggable UI and bean
 support).
 <dl>
 <dt><b><font size=+1>Caret Changes</font></b>
 <dd>
 The caret is a pluggable object in swing text components.
 Notification of changes to the caret position and the selection
 are sent to implementations of the CaretListener interface that
 have been registered with the text component.  The UI will
 install a default caret unless a customized caret has been 
 set.
 <dt><b><font size=+1>Commands</font></b>
 <dd>
 <p>
 Text components provide a number of commands that can be used
 to manipulate the component.  This is essentially the way that
 the component expresses its capabilities.  These are expressed
 in terms of the swing Action interface, using the TextAction
 implementation.  The set of commands supported by the text
 component can be found with the 
 <A HREF="../../../javax/swing/text/JTextComponent.html#getActions()"><CODE>getActions()</CODE></A> method.  These actions
 can be bound to key events, fired from buttons, etc.

 <dt><b><font size=+1>Keymaps</font></b>
 <dd>
 <p>
 To facilitate flexible use of the keyboard, support for
 creating keymaps and binding various keystrokes to some kind of 
 action is provided.  In order to allow keymaps to be shared across 
 multiple text components, they can use actions that extend TextAction.  
 TextAction can determine which JTextComponent most recently has or had
 focus and therefore is the subject of the action (In the case that the 
 ActionEvent sent to the action doesn't contain the target text component 
 as its source).
 <p>
 The use of the keymap is encouraged, but backward compatibilty
 with the awt mechanism is provided by giving the 
 listeners a chance to steal the event by consuming it.
 Keyboard event distribution is handled in the following order, with
 each distribution capable of consuming the event.
 <ol>
 <li>focus manager
 <li>registered KeyListener's
 <li>keymap handling using the current keymap
 <li>keyboard handling in JComponent (e.g. accelerators,
 component navigation, etc.).
 </ol>
 <p>
 By default the component will create a keymap (named <b>DEFAULT_KEYMAP</b>) 
 that is shared by all JTextComponent instances as the default keymap.  
 Typically a look-and-feel implementation will install a different keymap
 that resolves to the default keymap for those bindings not found in the 
 different keymap. The minimal bindings include:
 <ul>
 <li>inserting content into the editor for the
  printable keys.
 <li>removing content with the backspace and del
  keys.
 <li>caret movement forward and backward
 </ul>

 <dt><b><font size=+1>Model/View Split</font></b>
 <dd>
 <p>
 The text components have a model-view split.  A text component pulls 
 together the objects used to represent the model, view, and controller. 
 The text document model may be shared by other views which act as observers 
 of the model (e.g. a document may be shared by multiple components).

 <p align=center><img src="doc-files/editor.gif" HEIGHT=358 WIDTH=587></p>

 <p>
 The model is defined by the <A HREF="../../../javax/swing/text/Document.html"><CODE>Document</CODE></A> interface.
 This is intended to provide a flexible text storage mechanism
 that tracks change during edits and can be extended to more sophisticated
 models.  The model interfaces are meant to capture the capabilities of
 expression given by SGML, a system used to express a wide variety of
 content.
 Each modification to the document causes notification of the
 details of the change to be sent to all observers in the form of a 
 <A HREF="../../../javax/swing/event/DocumentEvent.html"><CODE>DocumentEvent</CODE></A> which allows the views to stay up to date with the model.
 This event is sent to observers that have implemented the 
 <A HREF="../../../javax/swing/event/DocumentListener.html"><CODE>DocumentListener</CODE></A>
 interface and registered interest with the model being observed.

 <dt><b><font size=+1>Location Information</font></b>
 <dd>
 The capability of determining the location of text in
 the view is provided.  There are two methods, <A HREF="../../../javax/swing/text/JTextComponent.html#modelToView(int)"><CODE>modelToView(int)</CODE></A>
 and <A HREF="../../../javax/swing/text/JTextComponent.html#viewToModel(java.awt.Point)"><CODE>viewToModel(java.awt.Point)</CODE></A> for determining this information.
 <dt><b><font size=+1>Undo/Redo support</font></b>
 <dd>
 Support for an edit history mechanism is provided to allow
 undo/redo operations.  The text component does not itself
 provide the history buffer by default, but does provide
 the UndoableEdit records that can be used in conjunction
 with a history buffer to provide the undo/redo support.
 The support is provided by the Document model, which allows
 one to attach UndoableEditListener implementations.

 <dt><b><font size=+1>Thread Safety</font></b>
 <dd>
 The swing text components provide some support of thread
 safe operations.  Because of the high level of configurability
 of the text components, it is possible to circumvent the
 protection provided.  The protection primarily comes from
 the model, so the documentation of AbstractDocument
 describes the assumptions of the protection provided.
 The methods that are safe to call asynchronously are marked
 with comments.
 </dl>

 <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="../../../javax/swing/text/Document.html"><CODE>Document</CODE></A>, 
<A HREF="../../../javax/swing/event/DocumentEvent.html"><CODE>DocumentEvent</CODE></A>, 
<A HREF="../../../javax/swing/event/DocumentListener.html"><CODE>DocumentListener</CODE></A>, 
<A HREF="../../../javax/swing/text/Caret.html"><CODE>Caret</CODE></A>, 
<A HREF="../../../javax/swing/event/CaretEvent.html"><CODE>CaretEvent</CODE></A>, 
<A HREF="../../../javax/swing/event/CaretListener.html"><CODE>CaretListener</CODE></A>, 
<A HREF="../../../javax/swing/plaf/TextUI.html"><CODE>TextUI</CODE></A>, 
<A HREF="../../../javax/swing/text/View.html"><CODE>View</CODE></A>, 
<A HREF="../../../javax/swing/text/ViewFactory.html"><CODE>ViewFactory</CODE></A>, <A HREF="../../../serialized-form.html#javax.swing.text.JTextComponent">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>&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.html">JTextComponent.AccessibleJTextComponent</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accessibility implementation for JTextComponent.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.KeyBinding.html">JTextComponent.KeyBinding</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Binding record for creating key bindings.</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="field_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#DEFAULT_KEYMAP">DEFAULT_KEYMAP</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is the name of the default keymap that will be shared by all
 JTextComponent instances unless they have had a different
 keymap set.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#FOCUS_ACCELERATOR_KEY">FOCUS_ACCELERATOR_KEY</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The bound property name for the focus accelerator.</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/text/JTextComponent.html#JTextComponent()">JTextComponent</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new JTextComponent.</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/text/JTextComponent.html#addCaretListener(javax.swing.event.CaretListener)">addCaretListener</A></B>(<A HREF="../../../javax/swing/event/CaretListener.html">CaretListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a caret listener for notification of any changes
 to the caret.</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/Keymap.html">Keymap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#addKeymap(java.lang.String, javax.swing.text.Keymap)">addKeymap</A></B>(java.lang.String&nbsp;nm,
          <A HREF="../../../javax/swing/text/Keymap.html">Keymap</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a new keymap into the keymap hierarchy.</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/text/JTextComponent.html#copy()">copy</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Transfers the currently selected range in the associated
 text model to the system clipboard, leaving the contents
 in the text model.</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/text/JTextComponent.html#cut()">cut</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Transfers the currently selected range in the associated
 text model to the system clipboard, removing the contents
 from the model.</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/text/JTextComponent.html#fireCaretUpdate(javax.swing.event.CaretEvent)">fireCaretUpdate</A></B>(<A HREF="../../../javax/swing/event/CaretEvent.html">CaretEvent</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/text/JTextComponent.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the AccessibleContext associated with this JComponent.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/Action.html">Action</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getActions()">getActions</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the command list for the editor.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/text/Caret.html">Caret</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getCaret()">getCaret</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the caret that allows text-oriented navigation over
 the view.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Color</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getCaretColor()">getCaretColor</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the current color used to render the 
 caret.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getCaretPosition()">getCaretPosition</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the position of the text insertion caret for the 
 text component.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Color</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getDisabledTextColor()">getDisabledTextColor</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the current color used to render the 
 selected text.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getDocument()">getDocument</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the model associated with the editor.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;char</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getFocusAccelerator()">getFocusAccelerator</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the key accelerator that will cause the receiving
 text component to get the focus.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/text/Highlighter.html">Highlighter</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getHighlighter()">getHighlighter</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the object responsible for making highlights.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/text/Keymap.html">Keymap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getKeymap()">getKeymap</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the keymap currently active in this text
 component.</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/Keymap.html">Keymap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getKeymap(java.lang.String)">getKeymap</A></B>(java.lang.String&nbsp;nm)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches a named keymap previously added to the document.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Insets</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getMargin()">getMargin</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the margin between the text component's border and
 its text.</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/text/JTextComponent.html#getPreferredScrollableViewportSize()">getPreferredScrollableViewportSize</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the preferred size of the viewport for a view component.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getScrollableBlockIncrement(java.awt.Rectangle, int, int)">getScrollableBlockIncrement</A></B>(java.awt.Rectangle&nbsp;visibleRect,
                            int&nbsp;orientation,
                            int&nbsp;direction)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Components that display logical rows or columns should compute
 the scroll increment that will completely expose one block
 of rows or columns, depending on the value of orientation.</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/text/JTextComponent.html#getScrollableTracksViewportHeight()">getScrollableTracksViewportHeight</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return 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/text/JTextComponent.html#getScrollableTracksViewportWidth()">getScrollableTracksViewportWidth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return 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>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getScrollableUnitIncrement(java.awt.Rectangle, int, int)">getScrollableUnitIncrement</A></B>(java.awt.Rectangle&nbsp;visibleRect,
                           int&nbsp;orientation,
                           int&nbsp;direction)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Components that display logical rows or columns should compute
 the scroll increment that will completely expose one new row
 or column, depending on the value of orientation.</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/text/JTextComponent.html#getSelectedText()">getSelectedText</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the selected text contained in this TextComponent.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Color</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getSelectedTextColor()">getSelectedTextColor</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the current color used to render the 
 selected text.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Color</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getSelectionColor()">getSelectionColor</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the current color used to render the 
 selection.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getSelectionEnd()">getSelectionEnd</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the selected text's end position.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getSelectionStart()">getSelectionStart</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the selected text's start position.</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/text/JTextComponent.html#getText()">getText</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text contained in this TextComponent.</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/text/JTextComponent.html#getText(int, int)">getText</A></B>(int&nbsp;offs,
        int&nbsp;len)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches a portion of the text represented by the
 component.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/plaf/TextUI.html">TextUI</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#getUI()">getUI</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the user-interface factory for this text-oriented editor.</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/text/JTextComponent.html#isEditable()">isEditable</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the boolean indicating whether this TextComponent is
 editable or not.</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/text/JTextComponent.html#isFocusTraversable()">isFocusTraversable</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the focus can be traversed.</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/text/JTextComponent.html#isOpaque()">isOpaque</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this component is completely opaque.</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/text/JTextComponent.html#loadKeymap(javax.swing.text.Keymap, javax.swing.text.JTextComponent.KeyBinding[], javax.swing.Action[])">loadKeymap</A></B>(<A HREF="../../../javax/swing/text/Keymap.html">Keymap</A>&nbsp;map,
           <A HREF="../../../javax/swing/text/JTextComponent.KeyBinding.html">JTextComponent.KeyBinding</A>[]&nbsp;bindings,
           <A HREF="../../../javax/swing/Action.html">Action</A>[]&nbsp;actions)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 Loads a keymap with a bunch of 
 bindings.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Rectangle</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#modelToView(int)">modelToView</A></B>(int&nbsp;pos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the given location in the model to a place in
 the view coordinate system.</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/text/JTextComponent.html#moveCaretPosition(int)">moveCaretPosition</A></B>(int&nbsp;pos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Moves the caret to a new position, leaving behind a
 mark defined by the last time setCaretPosition was
 called.</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/text/JTextComponent.html#paramString()">paramString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of this JTextComponent.</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/text/JTextComponent.html#paste()">paste</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Transfers the contents of the system clipboard into the
 associated text model.</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/text/JTextComponent.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;Processes any key events that the component itself 
 recognizes.</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/text/JTextComponent.html#read(java.io.Reader, java.lang.Object)">read</A></B>(java.io.Reader&nbsp;in,
     java.lang.Object&nbsp;desc)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initializes from a stream.</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/text/JTextComponent.html#removeCaretListener(javax.swing.event.CaretListener)">removeCaretListener</A></B>(<A HREF="../../../javax/swing/event/CaretListener.html">CaretListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a caret listener.</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/Keymap.html">Keymap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#removeKeymap(java.lang.String)">removeKeymap</A></B>(java.lang.String&nbsp;nm)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a named keymap previously added to the document.</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/text/JTextComponent.html#removeNotify()">removeNotify</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Notifies this component that it has been removed from its
 container.</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/text/JTextComponent.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>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#select(int, int)">select</A></B>(int&nbsp;selectionStart,
       int&nbsp;selectionEnd)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Selects the text found between the specified start and end 
 locations.</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/text/JTextComponent.html#selectAll()">selectAll</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Selects all the text in the TextComponent.</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/text/JTextComponent.html#setCaret(javax.swing.text.Caret)">setCaret</A></B>(<A HREF="../../../javax/swing/text/Caret.html">Caret</A>&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the caret to be used.</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/text/JTextComponent.html#setCaretColor(java.awt.Color)">setCaretColor</A></B>(java.awt.Color&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current color used to render the
 caret.</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/text/JTextComponent.html#setCaretPosition(int)">setCaretPosition</A></B>(int&nbsp;position)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the position of the text insertion caret for the TextComponent.</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/text/JTextComponent.html#setDisabledTextColor(java.awt.Color)">setDisabledTextColor</A></B>(java.awt.Color&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current color used to render the
 disabled text.</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/text/JTextComponent.html#setDocument(javax.swing.text.Document)">setDocument</A></B>(<A HREF="../../../javax/swing/text/Document.html">Document</A>&nbsp;doc)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Associates the editor with a text document.</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/text/JTextComponent.html#setEditable(boolean)">setEditable</A></B>(boolean&nbsp;b)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the specified boolean to indicate whether or not this
 TextComponent should be editable.</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/text/JTextComponent.html#setEnabled(boolean)">setEnabled</A></B>(boolean&nbsp;b)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables or disables this component, depending on the value of the 
 parameter <code>b</code>.</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/text/JTextComponent.html#setFocusAccelerator(char)">setFocusAccelerator</A></B>(char&nbsp;aKey)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the key accelerator that will cause the receiving text
 component to get the focus.</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/text/JTextComponent.html#setHighlighter(javax.swing.text.Highlighter)">setHighlighter</A></B>(<A HREF="../../../javax/swing/text/Highlighter.html">Highlighter</A>&nbsp;h)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the highlighter to be used.</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/text/JTextComponent.html#setKeymap(javax.swing.text.Keymap)">setKeymap</A></B>(<A HREF="../../../javax/swing/text/Keymap.html">Keymap</A>&nbsp;map)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the keymap to use for binding events to
 actions.</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/text/JTextComponent.html#setMargin(java.awt.Insets)">setMargin</A></B>(java.awt.Insets&nbsp;m)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets margin space between the text component's border
 and its text.</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/text/JTextComponent.html#setOpaque(boolean)">setOpaque</A></B>(boolean&nbsp;o)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets whether or not the UI should render a background.</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/text/JTextComponent.html#setSelectedTextColor(java.awt.Color)">setSelectedTextColor</A></B>(java.awt.Color&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current color used to render the
 selected text.</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/text/JTextComponent.html#setSelectionColor(java.awt.Color)">setSelectionColor</A></B>(java.awt.Color&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current color used to render the
 selection.</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/text/JTextComponent.html#setSelectionEnd(int)">setSelectionEnd</A></B>(int&nbsp;selectionEnd)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the selection end to the specified position.</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/text/JTextComponent.html#setSelectionStart(int)">setSelectionStart</A></B>(int&nbsp;selectionStart)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the selection start to the specified position.</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/text/JTextComponent.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 text.</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/text/JTextComponent.html#setUI(javax.swing.plaf.TextUI)">setUI</A></B>(<A HREF="../../../javax/swing/plaf/TextUI.html">TextUI</A>&nbsp;ui)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the user-interface factory for this text-oriented editor</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/text/JTextComponent.html#updateUI()">updateUI</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reloads the pluggable UI.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/JTextComponent.html#viewToModel(java.awt.Point)">viewToModel</A></B>(java.awt.Point&nbsp;pt)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the given place in the view coordinate system
 to the nearest representative location in the model.</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/text/JTextComponent.html#write(java.io.Writer)">write</A></B>(java.io.Writer&nbsp;out)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stores the contents of the model into the given
 stream.</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#getPreferredSize()">getPreferredSize</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#getUIClassID()">getUIClassID</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#isManagingFocus()">isManagingFocus</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 =========== -->

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

<A NAME="FOCUS_ACCELERATOR_KEY"><!-- --></A><H3>
FOCUS_ACCELERATOR_KEY</H3>
<PRE>
public static final java.lang.String <B>FOCUS_ACCELERATOR_KEY</B></PRE>
<DL>
<DD>The bound property name for the focus accelerator.</DL>
<HR>

<A NAME="DEFAULT_KEYMAP"><!-- --></A><H3>
DEFAULT_KEYMAP</H3>
<PRE>
public static final java.lang.String <B>DEFAULT_KEYMAP</B></PRE>
<DL>
<DD>This is the name of the default keymap that will be shared by all
 JTextComponent instances unless they have had a different
 keymap set.</DL>

<!-- ========= 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="JTextComponent()"><!-- --></A><H3>
JTextComponent</H3>
<PRE>
public <B>JTextComponent</B>()</PRE>
<DL>
<DD>Creates a new JTextComponent.
 Listeners for caret events are established, and the pluggable
 UI installed.  The component is marked as editable.  No layout manager
 is used, because layout is managed by the view subsystem of text.
 The document model is set to null.</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="getUI()"><!-- --></A><H3>
getUI</H3>
<PRE>
public <A HREF="../../../javax/swing/plaf/TextUI.html">TextUI</A> <B>getUI</B>()</PRE>
<DL>
<DD>Fetches the user-interface factory for this text-oriented editor.<DD><DL>
<DT><B>Returns:</B><DD>the factory</DL>
</DD>
</DL>
<HR>

<A NAME="setUI(javax.swing.plaf.TextUI)"><!-- --></A><H3>
setUI</H3>
<PRE>
public void <B>setUI</B>(<A HREF="../../../javax/swing/plaf/TextUI.html">TextUI</A>&nbsp;ui)</PRE>
<DL>
<DD>Sets the user-interface factory for this text-oriented editor<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ui</CODE> - the factory</DL>
</DD>
</DL>
<HR>

<A NAME="updateUI()"><!-- --></A><H3>
updateUI</H3>
<PRE>
public void <B>updateUI</B>()</PRE>
<DL>
<DD>Reloads the pluggable UI.  The key used to fetch the
 new interface is <b>getUIClassID()</b>.  The type of
 the UI is <b>TextUI</b>.  invalidate() is called after
 setting the UI.<DD><DL>
<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/JComponent.html#updateUI()">updateUI</A> in class <A HREF="../../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="isOpaque()"><!-- --></A><H3>
isOpaque</H3>
<PRE>
public boolean <B>isOpaque</B>()</PRE>
<DL>
<DD>Returns true if this component is completely opaque.  
 This is used in painting backgrounds.<DD><DL>
<DT><B>Returns:</B><DD>true if this component is completely opaque.<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/JComponent.html#isOpaque()">isOpaque</A> in class <A HREF="../../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="setOpaque(boolean)"><!-- --></A><H3>
setOpaque</H3>
<PRE>
public void <B>setOpaque</B>(boolean&nbsp;o)</PRE>
<DL>
<DD>Sets whether or not the UI should render a background.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>o</CODE> - true if should render a background<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/JComponent.html#setOpaque(boolean)">setOpaque</A> in class <A HREF="../../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="addCaretListener(javax.swing.event.CaretListener)"><!-- --></A><H3>
addCaretListener</H3>
<PRE>
public void <B>addCaretListener</B>(<A HREF="../../../javax/swing/event/CaretListener.html">CaretListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Adds a caret listener for notification of any changes
 to the caret.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/event/CaretEvent.html"><CODE>CaretEvent</CODE></A></DL>
</DD>
</DL>
<HR>

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

<A NAME="fireCaretUpdate(javax.swing.event.CaretEvent)"><!-- --></A><H3>
fireCaretUpdate</H3>
<PRE>
protected void <B>fireCaretUpdate</B>(<A HREF="../../../javax/swing/event/CaretEvent.html">CaretEvent</A>&nbsp;e)</PRE>
<DL>
<DD>Notifies all listeners that have registered interest for
 notification on this event type.  The event instance 
 is lazily created using the parameters passed into 
 the fire method.  The listener list is processed in a
 last-to-first manner.<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="setDocument(javax.swing.text.Document)"><!-- --></A><H3>
setDocument</H3>
<PRE>
public void <B>setDocument</B>(<A HREF="../../../javax/swing/text/Document.html">Document</A>&nbsp;doc)</PRE>
<DL>
<DD>Associates the editor with a text document.
 The currently registered factory is used to build a view for
 the document, which gets displayed by the editor after revalidation.
 A PropertyChange event ("document") is propagated to each listener.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - the document to display/edit<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#getDocument()"><CODE>getDocument()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getDocument()"><!-- --></A><H3>
getDocument</H3>
<PRE>
public <A HREF="../../../javax/swing/text/Document.html">Document</A> <B>getDocument</B>()</PRE>
<DL>
<DD>Fetches the model associated with the editor.  This is
 primarily for the UI to get at the minimal amount of
 state required to be a text editor.  Subclasses will
 return the actual type of the model which will typically
 be something that extends Document.<DD><DL>
<DT><B>Returns:</B><DD>the model</DL>
</DD>
</DL>
<HR>

<A NAME="getActions()"><!-- --></A><H3>
getActions</H3>
<PRE>
public <A HREF="../../../javax/swing/Action.html">Action</A>[] <B>getActions</B>()</PRE>
<DL>
<DD>Fetches the command list for the editor.  This is
 the list of commands supported by the plugged-in UI
 augmented by the collection of commands that the
 editor itself supports.  These are useful for binding
 to events, such as in a keymap.<DD><DL>
<DT><B>Returns:</B><DD>the command list</DL>
</DD>
</DL>
<HR>

<A NAME="setMargin(java.awt.Insets)"><!-- --></A><H3>
setMargin</H3>
<PRE>
public void <B>setMargin</B>(java.awt.Insets&nbsp;m)</PRE>
<DL>
<DD>Sets margin space between the text component's border
 and its text.  The text component's default Border
 object will use this value to create the proper margin.
 However, if a non-default border is set on the text component, 
 it is that Border object's responsibility to create the
 appropriate margin space (else this property will effectively 
 be ignored).  This causes a redraw of the component.
 A PropertyChange event ("margin") is sent to all listeners.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>m</CODE> - the space between the border and the text</DL>
</DD>
</DL>
<HR>

<A NAME="getMargin()"><!-- --></A><H3>
getMargin</H3>
<PRE>
public java.awt.Insets <B>getMargin</B>()</PRE>
<DL>
<DD>Returns the margin between the text component's border and
 its text.<DD><DL>
<DT><B>Returns:</B><DD>the margin</DL>
</DD>
</DL>
<HR>

<A NAME="getCaret()"><!-- --></A><H3>
getCaret</H3>
<PRE>
public <A HREF="../../../javax/swing/text/Caret.html">Caret</A> <B>getCaret</B>()</PRE>
<DL>
<DD>Fetches the caret that allows text-oriented navigation over
 the view.<DD><DL>
<DT><B>Returns:</B><DD>the caret</DL>
</DD>
</DL>
<HR>

<A NAME="setCaret(javax.swing.text.Caret)"><!-- --></A><H3>
setCaret</H3>
<PRE>
public void <B>setCaret</B>(<A HREF="../../../javax/swing/text/Caret.html">Caret</A>&nbsp;c)</PRE>
<DL>
<DD>Sets the caret to be used.  By default this will be set
 by the UI that gets installed.  This can be changed to
 a custom caret if desired.  Setting the caret results in a
 PropertyChange event ("caret") being fired.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - the caret<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#getCaret()"><CODE>getCaret()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getHighlighter()"><!-- --></A><H3>
getHighlighter</H3>
<PRE>
public <A HREF="../../../javax/swing/text/Highlighter.html">Highlighter</A> <B>getHighlighter</B>()</PRE>
<DL>
<DD>Fetches the object responsible for making highlights.<DD><DL>
<DT><B>Returns:</B><DD>the highlighter</DL>
</DD>
</DL>
<HR>

<A NAME="setHighlighter(javax.swing.text.Highlighter)"><!-- --></A><H3>
setHighlighter</H3>
<PRE>
public void <B>setHighlighter</B>(<A HREF="../../../javax/swing/text/Highlighter.html">Highlighter</A>&nbsp;h)</PRE>
<DL>
<DD>Sets the highlighter to be used.  By default this will be set
 by the UI that gets installed.  This can be changed to
 a custom highlighter if desired.  The highlighter can be set to
 null to disable it.  A PropertyChange event ("highlighter") is fired
 when a new highlighter is installed.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>h</CODE> - the highlighter<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#getHighlighter()"><CODE>getHighlighter()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setKeymap(javax.swing.text.Keymap)"><!-- --></A><H3>
setKeymap</H3>
<PRE>
public void <B>setKeymap</B>(<A HREF="../../../javax/swing/text/Keymap.html">Keymap</A>&nbsp;map)</PRE>
<DL>
<DD>Sets the keymap to use for binding events to
 actions.  Setting to null effectively disables keyboard input.
 A PropertyChange event ("keymap") is fired when a new keymap
 is installed.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>map</CODE> - the keymap<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#getKeymap()"><CODE>getKeymap()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getKeymap()"><!-- --></A><H3>
getKeymap</H3>
<PRE>
public <A HREF="../../../javax/swing/text/Keymap.html">Keymap</A> <B>getKeymap</B>()</PRE>
<DL>
<DD>Fetches the keymap currently active in this text
 component.<DD><DL>
<DT><B>Returns:</B><DD>the keymap</DL>
</DD>
</DL>
<HR>

<A NAME="addKeymap(java.lang.String, javax.swing.text.Keymap)"><!-- --></A><H3>
addKeymap</H3>
<PRE>
public static <A HREF="../../../javax/swing/text/Keymap.html">Keymap</A> <B>addKeymap</B>(java.lang.String&nbsp;nm,
                               <A HREF="../../../javax/swing/text/Keymap.html">Keymap</A>&nbsp;parent)</PRE>
<DL>
<DD>Adds a new keymap into the keymap hierarchy.  Keymap bindings
 resolve from bottom up so an attribute specified in a child
 will override an attribute specified in the parent.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nm</CODE> - the name of the keymap (must be unique within the
   collection of named keymaps in the document).  The name may 
   be null if the keymap is unnamed, but the caller is responsible
   for managing the reference returned as an unnamed keymap can't
   be fetched by name.<DD><CODE>parent</CODE> - the parent keymap.  This may be null if unspecified
   bindings need not be resolved in some other keymap.<DT><B>Returns:</B><DD>the keymap</DL>
</DD>
</DL>
<HR>

<A NAME="removeKeymap(java.lang.String)"><!-- --></A><H3>
removeKeymap</H3>
<PRE>
public static <A HREF="../../../javax/swing/text/Keymap.html">Keymap</A> <B>removeKeymap</B>(java.lang.String&nbsp;nm)</PRE>
<DL>
<DD>Removes a named keymap previously added to the document.  Keymaps
 with null names may not be removed in this way.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nm</CODE> - the name of the keymap to remove<DT><B>Returns:</B><DD>the keymap that was removed</DL>
</DD>
</DL>
<HR>

<A NAME="getKeymap(java.lang.String)"><!-- --></A><H3>
getKeymap</H3>
<PRE>
public static <A HREF="../../../javax/swing/text/Keymap.html">Keymap</A> <B>getKeymap</B>(java.lang.String&nbsp;nm)</PRE>
<DL>
<DD>Fetches a named keymap previously added to the document.
 This does not work with null-named keymaps.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nm</CODE> - the name of the keymap<DT><B>Returns:</B><DD>the keymap</DL>
</DD>
</DL>
<HR>

<A NAME="loadKeymap(javax.swing.text.Keymap, javax.swing.text.JTextComponent.KeyBinding[], javax.swing.Action[])"><!-- --></A><H3>
loadKeymap</H3>
<PRE>
public static void <B>loadKeymap</B>(<A HREF="../../../javax/swing/text/Keymap.html">Keymap</A>&nbsp;map,
                              <A HREF="../../../javax/swing/text/JTextComponent.KeyBinding.html">JTextComponent.KeyBinding</A>[]&nbsp;bindings,
                              <A HREF="../../../javax/swing/Action.html">Action</A>[]&nbsp;actions)</PRE>
<DL>
<DD><p>
 Loads a keymap with a bunch of 
 bindings.  This can be used to take a static table of
 definitions and load them into some keymap.  The following
 example illustrates an example of binding some keys to
 the cut, copy, and paste actions associated with a 
 JTextComponent.  A code fragment to accomplish
 this might look as follows:
 <pre><code>

   static final JTextComponent.KeyBinding[] defaultBindings = {
     new JTextComponent.KeyBinding(
       KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.CTRL_MASK),
       DefaultEditorKit.copyAction),
     new JTextComponent.KeyBinding(
       KeyStroke.getKeyStroke(KeyEvent.VK_V, InputEvent.CTRL_MASK),
       DefaultEditorKit.pasteAction),
     new JTextComponent.KeyBinding(
       KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.CTRL_MASK),
       DefaultEditorKit.cutAction),
   };

   JTextComponent c = new JTextPane();
   Keymap k = c.getKeymap();
   JTextComponent.loadKeymap(k, defaultBindings, c.getActions());
 
 </code></pre>
 The sets of bindings and actions may be empty but must be non-null.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>map</CODE> - the keymap<DD><CODE>bindings</CODE> - the bindings<DD><CODE>actions</CODE> - the set of actions</DL>
</DD>
</DL>
<HR>

<A NAME="getCaretColor()"><!-- --></A><H3>
getCaretColor</H3>
<PRE>
public java.awt.Color <B>getCaretColor</B>()</PRE>
<DL>
<DD>Fetches the current color used to render the 
 caret.<DD><DL>
<DT><B>Returns:</B><DD>the color</DL>
</DD>
</DL>
<HR>

<A NAME="setCaretColor(java.awt.Color)"><!-- --></A><H3>
setCaretColor</H3>
<PRE>
public void <B>setCaretColor</B>(java.awt.Color&nbsp;c)</PRE>
<DL>
<DD>Sets the current color used to render the
 caret.  Setting to null effectively restores the default color.
 Setting the color results in a PropertyChange event ("caretColor")
 being fired.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - the color<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#getCaretColor()"><CODE>getCaretColor()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSelectionColor()"><!-- --></A><H3>
getSelectionColor</H3>
<PRE>
public java.awt.Color <B>getSelectionColor</B>()</PRE>
<DL>
<DD>Fetches the current color used to render the 
 selection.<DD><DL>
<DT><B>Returns:</B><DD>the color</DL>
</DD>
</DL>
<HR>

<A NAME="setSelectionColor(java.awt.Color)"><!-- --></A><H3>
setSelectionColor</H3>
<PRE>
public void <B>setSelectionColor</B>(java.awt.Color&nbsp;c)</PRE>
<DL>
<DD>Sets the current color used to render the
 selection.  Setting the color to null is the same as setting
 Color.white.  Setting the color results in a PropertyChange event
 ("selectionColor").<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - the color<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#getSelectionColor()"><CODE>getSelectionColor()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSelectedTextColor()"><!-- --></A><H3>
getSelectedTextColor</H3>
<PRE>
public java.awt.Color <B>getSelectedTextColor</B>()</PRE>
<DL>
<DD>Fetches the current color used to render the 
 selected text.<DD><DL>
<DT><B>Returns:</B><DD>the color</DL>
</DD>
</DL>
<HR>

<A NAME="setSelectedTextColor(java.awt.Color)"><!-- --></A><H3>
setSelectedTextColor</H3>
<PRE>
public void <B>setSelectedTextColor</B>(java.awt.Color&nbsp;c)</PRE>
<DL>
<DD>Sets the current color used to render the
 selected text.  Setting the color to null is the same as Color.black.
 Setting the color results in a PropertyChange event
 ("selectedTextColor") being fired.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - the color<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#getSelectedTextColor()"><CODE>getSelectedTextColor()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getDisabledTextColor()"><!-- --></A><H3>
getDisabledTextColor</H3>
<PRE>
public java.awt.Color <B>getDisabledTextColor</B>()</PRE>
<DL>
<DD>Fetches the current color used to render the 
 selected text.<DD><DL>
<DT><B>Returns:</B><DD>the color</DL>
</DD>
</DL>
<HR>

<A NAME="setDisabledTextColor(java.awt.Color)"><!-- --></A><H3>
setDisabledTextColor</H3>
<PRE>
public void <B>setDisabledTextColor</B>(java.awt.Color&nbsp;c)</PRE>
<DL>
<DD>Sets the current color used to render the
 disabled text.  Setting the color fires off a
 PropertyChange event ("disabledTextColor").<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - the color<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#getDisabledTextColor()"><CODE>getDisabledTextColor()</CODE></A></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.  
 <p>
 This is the method that is used by the default implementation
 of the action for inserting content that gets bound to the
 keymap actions.
 <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.     
 <p>
 If the component is not currently editable, beep and return.  Then if
 the underlying model is null, do nothing.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>content</CODE> - the content to replace the selection with</DL>
</DD>
</DL>
<HR>

<A NAME="getText(int, int)"><!-- --></A><H3>
getText</H3>
<PRE>
public java.lang.String <B>getText</B>(int&nbsp;offs,
                                int&nbsp;len)
                         throws <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>Fetches a portion of the text represented by the
 component.  Returns an empty string if length is 0.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>offs</CODE> - the offset >= 0<DD><CODE>len</CODE> - the length >= 0<DT><B>Returns:</B><DD>the text<DT><B>Throws:</B><DD><A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A> - if the offset or length are invalid</DL>
</DD>
</DL>
<HR>

<A NAME="modelToView(int)"><!-- --></A><H3>
modelToView</H3>
<PRE>
public java.awt.Rectangle <B>modelToView</B>(int&nbsp;pos)
                               throws <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>Converts the given location in the model to a place in
 the view coordinate system.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - the position >= 0<DT><B>Returns:</B><DD>the coordinates as a rectangle, with (r.x, r.y) as the location
   in the coordinate system<DT><B>Throws:</B><DD><A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A> - if the given position does not 
   represent a valid location in the associated document<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/plaf/TextUI.html#modelToView(javax.swing.text.JTextComponent, int)"><CODE>TextUI.modelToView(javax.swing.text.JTextComponent, int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="viewToModel(java.awt.Point)"><!-- --></A><H3>
viewToModel</H3>
<PRE>
public int <B>viewToModel</B>(java.awt.Point&nbsp;pt)</PRE>
<DL>
<DD>Converts the given place in the view coordinate system
 to the nearest representative location in the model.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pt</CODE> - the location in the view to translate<DT><B>Returns:</B><DD>the offset >= 0 from the start of the document<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/plaf/TextUI.html#viewToModel(javax.swing.text.JTextComponent, java.awt.Point)"><CODE>TextUI.viewToModel(javax.swing.text.JTextComponent, java.awt.Point)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="cut()"><!-- --></A><H3>
cut</H3>
<PRE>
public void <B>cut</B>()</PRE>
<DL>
<DD>Transfers the currently selected range in the associated
 text model to the system clipboard, removing the contents
 from the model.  The current selection is reset.  Does nothing
 for null selections.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="copy()"><!-- --></A><H3>
copy</H3>
<PRE>
public void <B>copy</B>()</PRE>
<DL>
<DD>Transfers the currently selected range in the associated
 text model to the system clipboard, leaving the contents
 in the text model.  The current selection is remains intact.
 Does nothing for null selections.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="paste()"><!-- --></A><H3>
paste</H3>
<PRE>
public void <B>paste</B>()</PRE>
<DL>
<DD>Transfers the contents of the system clipboard into the
 associated text model.  If there is a selection in the
 associated view, it is replaced with the contents of the
 clipboard.  If there is no selection, the clipboard contents
 are inserted in front of the current insert position in 
 the associated view.  If the clipboard is empty, does nothing.<DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#replaceSelection(java.lang.String)"><CODE>replaceSelection(java.lang.String)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="moveCaretPosition(int)"><!-- --></A><H3>
moveCaretPosition</H3>
<PRE>
public void <B>moveCaretPosition</B>(int&nbsp;pos)</PRE>
<DL>
<DD>Moves the caret to a new position, leaving behind a
 mark defined by the last time setCaretPosition was
 called.  This forms a selection.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - the position<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#setCaretPosition(int)"><CODE>setCaretPosition(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setFocusAccelerator(char)"><!-- --></A><H3>
setFocusAccelerator</H3>
<PRE>
public void <B>setFocusAccelerator</B>(char&nbsp;aKey)</PRE>
<DL>
<DD>Sets the key accelerator that will cause the receiving text
 component to get the focus.  The accelerator will be the 
 key combination of the <em>alt</em> key and the character
 given (converted to upper case).  By default, there is no focus
 accelerator key.  Any previous key accelerator setting will be
 superseded.  A '\0' key setting will be registered, and has the
 effect of turning off the focus accelerator.  When the new key
 is set, a PropertyChange event (FOCUS_ACCELERATOR_KEY) will be fired.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aKey</CODE> - the key<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#getFocusAccelerator()"><CODE>getFocusAccelerator()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getFocusAccelerator()"><!-- --></A><H3>
getFocusAccelerator</H3>
<PRE>
public char <B>getFocusAccelerator</B>()</PRE>
<DL>
<DD>Returns the key accelerator that will cause the receiving
 text component to get the focus.  Return '\0' if no focus
 accelerator has been set.<DD><DL>
<DT><B>Returns:</B><DD>the key</DL>
</DD>
</DL>
<HR>

<A NAME="read(java.io.Reader, java.lang.Object)"><!-- --></A><H3>
read</H3>
<PRE>
public void <B>read</B>(java.io.Reader&nbsp;in,
                 java.lang.Object&nbsp;desc)
          throws java.io.IOException</PRE>
<DL>
<DD>Initializes from a stream.  This creates a
 model of the type appropriate for the component
 and initializes the model from the stream.
 By default this will load the model as plain
 text.  Previous contents of the model are discarded.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>in</CODE> - The stream to read from<DD><CODE>desc</CODE> - An object describing the stream.  This
   might be a string, a File, a URL, etc.  Some kinds
   of documents (such as html for example) might be
   able to make use of this information.  If non-null, it is
   added as a property of the document.<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/EditorKit.html#createDefaultDocument()"><CODE>EditorKit.createDefaultDocument()</CODE></A>, 
<A HREF="../../../javax/swing/text/JTextComponent.html#setDocument(javax.swing.text.Document)"><CODE>setDocument(javax.swing.text.Document)</CODE></A>, 
<A HREF="../../../javax/swing/text/PlainDocument.html"><CODE>PlainDocument</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="write(java.io.Writer)"><!-- --></A><H3>
write</H3>
<PRE>
public void <B>write</B>(java.io.Writer&nbsp;out)
           throws java.io.IOException</PRE>
<DL>
<DD>Stores the contents of the model into the given
 stream.  By default this will store the model as plain
 text.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error</DL>
</DD>
</DL>
<HR>

<A NAME="removeNotify()"><!-- --></A><H3>
removeNotify</H3>
<PRE>
public void <B>removeNotify</B>()</PRE>
<DL>
<DD>Notifies this component that it has been removed from its
 container.  This is used to remove the reference to this 
 component as the last focused component, if such a reference
 exists (i.e. to support TextAction).<DD><DL>
<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/JComponent.html#removeNotify()">removeNotify</A> in class <A HREF="../../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="setEnabled(boolean)"><!-- --></A><H3>
setEnabled</H3>
<PRE>
public void <B>setEnabled</B>(boolean&nbsp;b)</PRE>
<DL>
<DD>Enables or disables this component, depending on the value of the 
 parameter <code>b</code>. An enabled component can respond to user 
 input and generate events. Components are enabled initially by default.
 A repaint() is done after setting the new state.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>b</CODE> - If <code>true</code>, this component is 
            enabled; otherwise this component is disabled.<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/JComponent.html#setEnabled(boolean)">setEnabled</A> in class <A HREF="../../../javax/swing/JComponent.html">JComponent</A><DT><B>Since: </B><DD>JDK1.1</DD>
<DT><B>See Also: </B><DD><CODE>Component.isEnabled()</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="isFocusTraversable()"><!-- --></A><H3>
isFocusTraversable</H3>
<PRE>
public boolean <B>isFocusTraversable</B>()</PRE>
<DL>
<DD>Returns true if the focus can be traversed.  This would be false
 for components like a disabled button.<DD><DL>
<DT><B>Returns:</B><DD>true if the focus is traversable<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/JComponent.html#isFocusTraversable()">isFocusTraversable</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>Processes any key events that the component itself 
 recognizes.  This will be called after the focus
 manager and any interested listeners have been
 given a chance to steal away the event.  This 
 method will only be called is the event has not
 yet been consumed.  This method is called prior
 to the keyboard UI logic.
 <p>
 This is implemented to take a default action, typically
 inserting the character into the document as content.  Subclasses
 would normally override this method if they process some
 key events themselves.  If the event is processed,
 it should be consumed.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>e</CODE> - the event<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/JComponent.html#processComponentKeyEvent(java.awt.event.KeyEvent)">processComponentKeyEvent</A> in class <A HREF="../../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="setCaretPosition(int)"><!-- --></A><H3>
setCaretPosition</H3>
<PRE>
public void <B>setCaretPosition</B>(int&nbsp;position)</PRE>
<DL>
<DD>Sets the position of the text insertion caret for the TextComponent.
 Note that the caret tracks change, so this may move if the underlying
 text of the component is changed.  If the document is null, does
 nothing.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>position</CODE> - the position</DL>
</DD>
</DL>
<HR>

<A NAME="getCaretPosition()"><!-- --></A><H3>
getCaretPosition</H3>
<PRE>
public int <B>getCaretPosition</B>()</PRE>
<DL>
<DD>Returns the position of the text insertion caret for the 
 text component.<DD><DL>
<DT><B>Returns:</B><DD>the position of the text insertion caret for the
  text component >= 0</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 text.  If the
 text is null or empty, has the effect of simply deleting the old text.
 <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>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#getText(int, int)"><CODE>getText(int, int)</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.  If the underlying
 document is null, will give a NullPointerException.<DD><DL>
<DT><B>Returns:</B><DD>the text<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#setText(java.lang.String)"><CODE>setText(java.lang.String)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSelectedText()"><!-- --></A><H3>
getSelectedText</H3>
<PRE>
public java.lang.String <B>getSelectedText</B>()</PRE>
<DL>
<DD>Returns the selected text contained in this TextComponent.  If
 the selection is null or the document empty, returns null.<DD><DL>
<DT><B>Returns:</B><DD>the text<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - if the selection doesn't
  have a valid mapping into the document for some reason<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#setText(java.lang.String)"><CODE>setText(java.lang.String)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="isEditable()"><!-- --></A><H3>
isEditable</H3>
<PRE>
public boolean <B>isEditable</B>()</PRE>
<DL>
<DD>Returns the boolean indicating whether this TextComponent is
 editable or not.<DD><DL>
<DT><B>Returns:</B><DD>the boolean value<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#setEditable(boolean)"><CODE>setEditable(boolean)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setEditable(boolean)"><!-- --></A><H3>
setEditable</H3>
<PRE>
public void <B>setEditable</B>(boolean&nbsp;b)</PRE>
<DL>
<DD>Sets the specified boolean to indicate whether or not this
 TextComponent should be editable.  A PropertyChange event ("editable")
 is fired when the state is changed.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>b</CODE> - the boolean to be set<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#isEditable()"><CODE>isEditable()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSelectionStart()"><!-- --></A><H3>
getSelectionStart</H3>
<PRE>
public int <B>getSelectionStart</B>()</PRE>
<DL>
<DD>Returns the selected text's start position.  Return 0 for an
 empty document, or the value of dot if no selection.<DD><DL>
<DT><B>Returns:</B><DD>the start position >= 0</DL>
</DD>
</DL>
<HR>

<A NAME="setSelectionStart(int)"><!-- --></A><H3>
setSelectionStart</H3>
<PRE>
public void <B>setSelectionStart</B>(int&nbsp;selectionStart)</PRE>
<DL>
<DD>Sets the selection start to the specified position.  The new
 starting point is constrained to be before or at the current
 selection end.
 <p>
 This is available for backward compatiblitity to code 
 that called this method on java.awt.TextComponent.  This is
 implemented to forward to the Caret implementation which
 is where the actual selection is maintained.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>selectionStart</CODE> - the start position of the text >= 0</DL>
</DD>
</DL>
<HR>

<A NAME="getSelectionEnd()"><!-- --></A><H3>
getSelectionEnd</H3>
<PRE>
public int <B>getSelectionEnd</B>()</PRE>
<DL>
<DD>Returns the selected text's end position.  Return 0 if the document
 is empty, or the value of dot if there is no selection.<DD><DL>
<DT><B>Returns:</B><DD>the end position >= 0</DL>
</DD>
</DL>
<HR>

<A NAME="setSelectionEnd(int)"><!-- --></A><H3>
setSelectionEnd</H3>
<PRE>
public void <B>setSelectionEnd</B>(int&nbsp;selectionEnd)</PRE>
<DL>
<DD>Sets the selection end to the specified position.  The new
 end point is constrained to be at or after the current
 selection start.
 <p>
 This is available for backward compatiblitity to code 
 that called this method on java.awt.TextComponent.  This is
 implemented to forward to the Caret implementation which
 is where the actual selection is maintained.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>selectionEnd</CODE> - the end position of the text >= 0</DL>
</DD>
</DL>
<HR>

<A NAME="select(int, int)"><!-- --></A><H3>
select</H3>
<PRE>
public void <B>select</B>(int&nbsp;selectionStart,
                   int&nbsp;selectionEnd)</PRE>
<DL>
<DD>Selects the text found between the specified start and end 
 locations.  This call is provided for backward compatibility.
 It is routed to a call to setCaretPosition
 followed by a call to moveCaretPostion.  The preferred way
 to manage selection is by calling those methods directly.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>selectionStart</CODE> - the start position of the text >= 0<DD><CODE>selectionEnd</CODE> - the end position of the text >= 0<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#setCaretPosition(int)"><CODE>setCaretPosition(int)</CODE></A>, 
<A HREF="../../../javax/swing/text/JTextComponent.html#moveCaretPosition(int)"><CODE>moveCaretPosition(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="selectAll()"><!-- --></A><H3>
selectAll</H3>
<PRE>
public void <B>selectAll</B>()</PRE>
<DL>
<DD>Selects all the text in the TextComponent.  Does nothing on a null
 or empty document.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getPreferredScrollableViewportSize()"><!-- --></A><H3>
getPreferredScrollableViewportSize</H3>
<PRE>
public java.awt.Dimension <B>getPreferredScrollableViewportSize</B>()</PRE>
<DL>
<DD>Returns the preferred size of the viewport for a view component.
 This is implemented to do the default behavior of returning
 the preferred size of the component.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/Scrollable.html#getPreferredScrollableViewportSize()">getPreferredScrollableViewportSize</A> in interface <A HREF="../../../javax/swing/Scrollable.html">Scrollable</A><DT><B>Returns:</B><DD>The preferredSize of a JViewport whose view is this Scrollable.</DL>
</DD>
</DL>
<HR>

<A NAME="getScrollableUnitIncrement(java.awt.Rectangle, int, int)"><!-- --></A><H3>
getScrollableUnitIncrement</H3>
<PRE>
public int <B>getScrollableUnitIncrement</B>(java.awt.Rectangle&nbsp;visibleRect,
                                      int&nbsp;orientation,
                                      int&nbsp;direction)</PRE>
<DL>
<DD>Components that display logical rows or columns should compute
 the scroll increment that will completely expose one new row
 or column, depending on the value of orientation.  Ideally, 
 components should handle a partially exposed row or column by 
 returning the distance required to completely expose the item.
 <p>
 The default implementation of this is to simply return 10% of
 the visible area.  Subclasses are likely to be able to provide
 a much more reasonable value.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/Scrollable.html#getScrollableUnitIncrement(java.awt.Rectangle, int, int)">getScrollableUnitIncrement</A> in interface <A HREF="../../../javax/swing/Scrollable.html">Scrollable</A><DT><B>Parameters:</B><DD><CODE>visibleRect</CODE> - The view area visible within the viewport<DD><CODE>orientation</CODE> - Either SwingConstants.VERTICAL or
   SwingConstants.HORIZONTAL.<DD><CODE>direction</CODE> - Less than zero to scroll up/left, greater than
   zero for down/right.<DT><B>Returns:</B><DD>The "unit" increment for scrolling in the specified direction<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - for an invalid orientation<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/JScrollBar.html#setUnitIncrement(int)"><CODE>JScrollBar.setUnitIncrement(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getScrollableBlockIncrement(java.awt.Rectangle, int, int)"><!-- --></A><H3>
getScrollableBlockIncrement</H3>
<PRE>
public int <B>getScrollableBlockIncrement</B>(java.awt.Rectangle&nbsp;visibleRect,
                                       int&nbsp;orientation,
                                       int&nbsp;direction)</PRE>
<DL>
<DD>Components that display logical rows or columns should compute
 the scroll increment that will completely expose one block
 of rows or columns, depending on the value of orientation. 
 <p>
 The default implementation of this is to simply return the visible
 area.  Subclasses will likely be able to provide a much more 
 reasonable value.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/Scrollable.html#getScrollableBlockIncrement(java.awt.Rectangle, int, int)">getScrollableBlockIncrement</A> in interface <A HREF="../../../javax/swing/Scrollable.html">Scrollable</A><DT><B>Parameters:</B><DD><CODE>visibleRect</CODE> - The view area visible within the viewport<DD><CODE>orientation</CODE> - Either SwingConstants.VERTICAL or
   SwingConstants.HORIZONTAL.<DD><CODE>direction</CODE> - Less than zero to scroll up/left, greater than zero
  for down/right.<DT><B>Returns:</B><DD>The "block" increment for scrolling in the specified direction.<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - for an invalid orientation<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/JScrollBar.html#setBlockIncrement(int)"><CODE>JScrollBar.setBlockIncrement(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getScrollableTracksViewportWidth()"><!-- --></A><H3>
getScrollableTracksViewportWidth</H3>
<PRE>
public boolean <B>getScrollableTracksViewportWidth</B>()</PRE>
<DL>
<DD>Return true if a viewport should always force the width of this 
 Scrollable to match the width of the viewport.  For example a normal 
 text view that supported line wrapping would return true here, since it
 would be undesirable for wrapped lines to disappear beyond the right
 edge of the viewport.  Note that returning true for a Scrollable
 whose ancestor is a JScrollPane effectively disables horizontal
 scrolling.
 <p>
 Scrolling containers, like JViewport, will use this method each 
 time they are validated.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/Scrollable.html#getScrollableTracksViewportWidth()">getScrollableTracksViewportWidth</A> in interface <A HREF="../../../javax/swing/Scrollable.html">Scrollable</A><DT><B>Returns:</B><DD>true if a viewport should force the Scrollables
   width to match its own.</DL>
</DD>
</DL>
<HR>

<A NAME="getScrollableTracksViewportHeight()"><!-- --></A><H3>
getScrollableTracksViewportHeight</H3>
<PRE>
public boolean <B>getScrollableTracksViewportHeight</B>()</PRE>
<DL>
<DD>Return true if a viewport should always force the height of this 
 Scrollable to match the height of the viewport.  For example a 
 columnar text view that flowed text in left to right columns 
 could effectively disable vertical scrolling by returning
 true here.
 <p>
 Scrolling containers, like JViewport, will use this method each 
 time they are validated.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/Scrollable.html#getScrollableTracksViewportHeight()">getScrollableTracksViewportHeight</A> in interface <A HREF="../../../javax/swing/Scrollable.html">Scrollable</A><DT><B>Returns:</B><DD>true if a viewport should force the Scrollables height
   to match its own.</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>Gets the AccessibleContext associated with this JComponent.
 A new context is created if necessary.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/accessibility/Accessible.html#getAccessibleContext()">getAccessibleContext</A> in interface <A HREF="../../../javax/accessibility/Accessible.html">Accessible</A><DT><B>Returns:</B><DD>the AccessibleContext of this JComponent<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/JComponent.html#getAccessibleContext()">getAccessibleContext</A> in class <A HREF="../../../javax/swing/JComponent.html">JComponent</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 JTextComponent. 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 JTextComponent.<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/JComponent.html#paramString()">paramString</A> in class <A HREF="../../../javax/swing/JComponent.html">JComponent</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/JTextComponent.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/text/IconView.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/JTextComponent.AccessibleJTextComponent.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="JTextComponent.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="#field_summary">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;<A HREF="#field_detail">FIELD</A>&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>
