APIdia Launch Partner
Top Description Inners Fields Constructors Methods
javax.swing.text

public abstract Class JTextComponent

extends JComponent
implements Scrollable, Accessible
Class Inheritance
All Implemented Interfaces
javax.accessibility.Accessible, javax.swing.Scrollable
Known Direct Subclasses
javax.swing.JEditorPane, javax.swing.JTextArea, javax.swing.JTextField
Annotations
@JavaBean
defaultProperty:UI
@SwingContainer:false
@SuppressWarnings:serial
Imports
com.sun.beans.util.Cache, java.beans.JavaBean, .BeanProperty, .Transient, java.util.ArrayList, .HashMap, .Hashtable, .Enumeration, java.util.concurrent.*, java.io.*, java.awt.*, java.awt.event.*, java.awt.print.*, java.awt.datatransfer.*, java.awt.im.InputContext, .InputMethodRequests, java.awt.font.TextHitInfo, .TextAttribute, java.awt.geom.Point2D, .Rectangle2D, javax.print.PrintService, java.text.*, .AttributedCharacterIterator.Attribute, javax.swing.*, javax.swing.event.*, javax.swing.plaf.*, javax.accessibility.*, javax.print.attribute.*, sun.swing.PrintingStatus, .SwingUtilities2, .SwingAccessor, sun.swing.text.TextComponentPrintable

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). You can find information on how to use the functionality this class provides in General Rules for Using Text Components, a section in The Java Tutorial.
Caret Changes
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.
By default the caret tracks all the document changes performed on the Event Dispatching Thread and updates it's position accordingly if an insertion occurs before or at the caret position or a removal occurs before the caret position. DefaultCaret tries to make itself visible which may lead to scrolling of a text component within JScrollPane. The default caret behavior can be changed by the DefaultCaret#setUpdatePolicy method

Note

Non-editable text components also have a caret though it may not be painted.

Commands
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 getActions method. These actions can be bound to key events, fired from buttons, etc.
Text Input
The text components support flexible and internationalized text input, using keymaps and the input method framework, while maintaining compatibility with the AWT listener model.

A javax.swing.text.Keymap lets an application bind key strokes to actions. 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).

The Input Method Framework lets text components interact with input methods, separate software components that preprocess events to let users enter thousands of different characters using keyboards with far fewer keys. JTextComponent is an active client of the framework, so it implements the preferred user interface for interacting with input methods. As a consequence, some key events do not reach the text component because they are handled by an input method, and some text input reaches the text component as committed text within an java.awt.event.InputMethodEvent instead of as a key event. The complete text input is the combination of the characters in keyTyped key events and committed text in input method events.

The AWT listener model lets applications attach event listeners to components in order to bind events to actions. Swing encourages the use of keymaps instead of listeners, but maintains compatibility with listeners by giving the listeners a chance to steal an event by consuming it.

Keyboard event and input method events are handled in the following stages, with each stage capable of consuming the event:

Stages of keyboard and input method event handling
Stage KeyEvent InputMethodEvent
1. input methods (generated here)
2. focus manager
3. registered key listeners registered input method listeners
4. input method handling in JTextComponent
5. keymap handling using the current keymap
6. keyboard handling in JComponent (e.g. accelerators, component navigation, etc.)

To maintain compatibility with applications that listen to key events but are not aware of input method events, the input method handling in stage 4 provides a compatibility mode for components that do not process input method events. For these components, the committed text is converted to keyTyped key events and processed in the key event pipeline starting at stage 3 instead of in the input method event pipeline.

By default the component will create a keymap (named DEFAULT_KEYMAP) 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:

Model/View Split
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).

Diagram showing interaction between Controller, Document, events, and ViewFactory

The model is defined by the Document 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 DocumentEvent which allows the views to stay up to date with the model. This event is sent to observers that have implemented the DocumentListener interface and registered interest with the model being observed.

Location Information
The capability of determining the location of text in the view is provided. There are two methods, modelToView and viewToModel for determining this information.
Undo/Redo support
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.
Thread Safety
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.
Newlines
For a discussion on how newlines are handled, see DefaultEditorKit.
Printing support
Several print methods are provided for basic document printing. If more advanced printing is needed, use the getPrintable method.

Warning

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. As of 1.4, support for long term storage of all JavaBeans has been added to the java.beans package. Please see java.beans.XMLEncoder.

Authors
Timothy Prinzing, Igor Kushnirskiy (printing support)
See Also
Document, DocumentEvent, DocumentListener, Caret, CaretEvent, CaretListener, TextUI, View, ViewFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class
JTextComponent.AccessibleJTextComponent

This class implements accessibility support for the JTextComponent class.

pack-priv class
pack-priv static class
pack-priv static class
JTextComponent.DefaultTransferHandler

A Simple TransferHandler that exports the data as a String, and imports the data from the String clipboard.

private static class
public static class
JTextComponent.DropLocation

Represents a drop location for JTextComponents.

pack-priv class
public static class
JTextComponent.KeyBinding

Binding record for creating key bindings.

pack-priv static class
JTextComponent.KeymapActionMap

Wraps a Keymap inside an ActionMap.

pack-priv static class
JTextComponent.KeymapWrapper

KeymapWrapper wraps a Keymap inside an InputMap.

pack-priv static class
JTextComponent.MutableCaretEvent

Event to use when firing a notification of change to caret position.

Field Summary

Modifier and TypeField and Description
private transient Caret
caret

The caret used to display the insert position and navigate throughout the document.

private Color
private transient JTextComponent.MutableCaretEvent
private boolean
checkedInputOverride

Set to true after the check for the override of processInputMethodEvent has been checked.

private SimpleAttributeSet
private JTextComponent.ComposedTextCaret
private String
private Position
private Position
public static final String
DEFAULT_KEYMAP

The default keymap that will be shared by all JTextComponent instances unless they have had a different keymap set.

private static JTextComponent.DefaultTransferHandler
defaultTransferHandler

TransferHandler used if one hasn't been supplied by the UI.

private Color
private boolean
private transient JTextComponent.DropLocation
dropLocation

The drop location.

private DropMode
dropMode

The drop mode for this component.

private boolean
public static final String
FOCUS_ACCELERATOR_KEY

The bound property name for the focus accelerator.

private char
private static JTextComponent
private transient Highlighter
highlighter

The object responsible for managing highlights.

private transient InputMethodRequests
private transient Keymap
keymap

The current key bindings in effect.

private static HashMap<String, Keymap>
private Position
private Position
private Insets
private static Cache<Class<?>, Boolean>
METHOD_OVERRIDDEN

Maps from class name to Boolean indicating if processInputMethodEvent has been overridden.

private Document
model

The document model.

private boolean
private transient Caret
private Color
private Color
Inherited from javax.swing.JComponent:
listenerListTOOL_TIP_TEXT_KEYuiUNDEFINED_CONDITIONWHEN_ANCESTOR_OF_FOCUSED_COMPONENTWHEN_FOCUSEDWHEN_IN_FOCUSED_WINDOW

Constructor Summary

AccessConstructor and Description
public
JTextComponent()

Creates a new JTextComponent.

Method Summary

Modifier and TypeMethod and Description
public void
addCaretListener(CaretListener
the listener to be added
listener
)

Adds a caret listener for notification of any changes to the caret.

public void
addInputMethodListener(InputMethodListener l)

Overrides java.awt.Component.addInputMethodListener.

Adds the specified input method listener to receive input method events from this component.

public static Keymap

Returns:

the keymap
addKeymap
(String
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
nm
,
Keymap
the parent keymap; this may be null if unspecified bindings need not be resolved in some other keymap
parent
)

Adds a new keymap into the keymap hierarchy.

private static void
checkDragEnabled(boolean b)

private static void
pack-priv boolean
public void
copy()

Transfers the currently selected range in the associated text model to the system clipboard, leaving the contents in the text model.

private void
public void
cut()

Transfers the currently selected range in the associated text model to the system clipboard, removing the contents from the model.

pack-priv JTextComponent.DropLocation

Returns:

the drop location, or null
dropLocationForPoint
(Point
the point to calculate a drop location for
p
)

Hides javax.swing.JComponent.dropLocationForPoint.

Calculates a drop location in this component, representing where a drop at the given point should insert data.

private void
exchangeCaret(Caret oldCaret, Caret newCaret)

protected void
fireCaretUpdate(CaretEvent
the event
e
)

Notifies all listeners that have registered interest for notification on this event type.

public AccessibleContext

Returns:

an AccessibleJTextComponent that serves as the AccessibleContext of this JTextComponent
getAccessibleContext
()

Overrides java.awt.Component.getAccessibleContext.

Implements javax.accessibility.Accessible.getAccessibleContext.

Gets the AccessibleContext associated with this JTextComponent.

public Action[]

Returns:

the command list
getActions
()

Fetches the command list for the editor.

public Caret

Returns:

the caret
getCaret
()

Fetches the caret that allows text-oriented navigation over the view.

public Color

Returns:

the color
getCaretColor
()

Fetches the current color used to render the caret.

public CaretListener[]

Returns:

all of this component's CaretListeners or an empty array if no caret listeners are currently registered
getCaretListeners
()

Returns an array of all the caret listeners registered on this text component.

public int

Returns:

the position of the text insertion caret for the text component ≥ 0
getCaretPosition
()

Returns the position of the text insertion caret for the text component.

private int
public Color

Returns:

the color
getDisabledTextColor
()

Fetches the current color used to render the disabled text.

public Document

Returns:

the model
getDocument
()

Fetches the model associated with the editor.

public boolean

Returns:

the value of the dragEnabled property
getDragEnabled
()

Returns whether or not automatic drag handling is enabled.

public final JTextComponent.DropLocation

Returns:

the drop location
getDropLocation
()

Returns the location that this component should visually indicate as the drop location during a DnD operation over the component, or null if no location is to currently be shown.

public final DropMode

Returns:

the drop mode for this component
getDropMode
()

Returns the drop mode for this component.

public char

Returns:

the key
getFocusAccelerator
()

Returns the key accelerator that will cause the receiving text component to get the focus.

pack-priv static final JTextComponent
getFocusedComponent()

Returns the JTextComponent that most recently had focus.

public Highlighter

Returns:

the highlighter
getHighlighter
()

Fetches the object responsible for making highlights.

public InputMethodRequests
getInputMethodRequests()

Overrides java.awt.Component.getInputMethodRequests.

Gets the input method request handler which supports requests from input methods for this component.

public Keymap

Returns:

the keymap
getKeymap
()

Fetches the keymap currently active in this text component.

public static Keymap

Returns:

the keymap
getKeymap
(String
the name of the keymap
nm
)

Fetches a named keymap previously added to the document.

private static synchronized HashMap<String, Keymap>
public Insets

Returns:

the margin
getMargin
()

Returns the margin between the text component's border and its text.

public NavigationFilter

Returns:

the NavigationFilter
getNavigationFilter
()

Returns the NavigationFilter.

public Dimension

Returns:

the preferredSize of a JViewport whose view is this Scrollable
getPreferredScrollableViewportSize
()

Implements javax.swing.Scrollable.getPreferredScrollableViewportSize.

Returns the preferred size of the viewport for a view component.

public Printable

Returns:

a Printable for use in printing content of this JTextComponent
getPrintable
(final MessageFormat
the text, in MessageFormat, to be used as the header, or null for no header
headerFormat
,
final MessageFormat
the text, in MessageFormat, to be used as the footer, or null for no footer
footerFormat
)

Returns a Printable to use for printing the content of this JTextComponent.

public int

Returns:

the "block" increment for scrolling in the specified direction
getScrollableBlockIncrement
(Rectangle
the view area visible within the viewport
visibleRect
,
int
either SwingConstants.VERTICAL or SwingConstants.HORIZONTAL
orientation
,
int
less than zero to scroll up/left, greater than zero for down/right
direction
)

Implements javax.swing.Scrollable.getScrollableBlockIncrement.

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.

public boolean

Returns:

true if a viewport should force the Scrollables height to match its own
getScrollableTracksViewportHeight
()

Implements javax.swing.Scrollable.getScrollableTracksViewportHeight.

Returns true if a viewport should always force the height of this Scrollable to match the height of the viewport.

public boolean

Returns:

true if a viewport should force the Scrollables width to match its own
getScrollableTracksViewportWidth
()

Implements javax.swing.Scrollable.getScrollableTracksViewportWidth.

Returns true if a viewport should always force the width of this Scrollable to match the width of the viewport.

public int

Returns:

the "unit" increment for scrolling in the specified direction
getScrollableUnitIncrement
(Rectangle
the view area visible within the viewport
visibleRect
,
int
either SwingConstants.VERTICAL or SwingConstants.HORIZONTAL
orientation
,
int
less than zero to scroll up/left, greater than zero for down/right
direction
)

Implements javax.swing.Scrollable.getScrollableUnitIncrement.

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.

public String

Returns:

the text
getSelectedText
()

Returns the selected text contained in this TextComponent.

public Color

Returns:

the color
getSelectedTextColor
()

Fetches the current color used to render the selected text.

public Color

Returns:

the color
getSelectionColor
()

Fetches the current color used to render the selection.

public int

Returns:

the end position ≥ 0
getSelectionEnd
()

Returns the selected text's end position.

public int

Returns:

the start position ≥ 0
getSelectionStart
()

Returns the selected text's start position.

public String

Returns:

the text
getText
(int
the offset ≥ 0
offs
,
int
the length ≥ 0
len
)

Fetches a portion of the text represented by the component.

public String

Returns:

the text
getText
()

Returns the text contained in this TextComponent.

public String

Returns:

the string to be used as the tooltip for event
getToolTipText
(MouseEvent
the event in question
event
)

Overrides javax.swing.JComponent.getToolTipText.

Returns the string to be used as the tooltip for event.

public TextUI

Returns:

the factory
getUI
()

Overrides javax.swing.JComponent.getUI.

Fetches the user-interface factory for this text-oriented editor.

private void
installDefaultTransferHandlerIfNecessary()

If the current TransferHandler is null, this will install a new one.

private void
invokeAction(String name, Action altAction)

This is a convenience method that is only useful for cut, copy and paste.

public boolean

Returns:

the boolean value
isEditable
()

Returns the boolean indicating whether this TextComponent is editable or not.

public static void
loadKeymap(Keymap
the keymap
map
,
JTextComponent.KeyBinding[]
the bindings
bindings
,
Action[]
the set of actions
actions
)

Loads a keymap with a bunch of bindings.

private void
public Rectangle

Returns:

the coordinates as a rectangle, with (r.x, r.y) as the location in the coordinate system, or null if the component does not yet have a positive size.
modelToView
(int
the position ≥ 0
pos
)
Deprecated since 9. replaced by modelToView2D(int)

Converts the given location in the model to a place in the view coordinate system.

public Rectangle2D

Returns:

the coordinates as a rectangle, with (r.x, r.y) as the location in the coordinate system, or null if the component does not yet have a positive size.
modelToView2D
(int
the position >= 0
pos
)

Converts the given location in the model to a place in the view coordinate system.

public void
moveCaretPosition(int
the position
pos
)

Moves the caret to a new position, leaving behind a mark defined by the last time setCaretPosition was called.

protected String

Returns:

a string representation of this JTextComponent
paramString
()

Overrides javax.swing.JComponent.paramString.

Returns a string representation of this JTextComponent.

public void
paste()

Transfers the contents of the system clipboard into the associated text model.

protected void
processInputMethodEvent(InputMethodEvent e)

Overrides java.awt.Component.processInputMethodEvent.

Processes input method events occurring on this component by dispatching them to any registered InputMethodListener objects.

public void
read(Reader
the stream to read from
in
,
Object
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
desc
)

Initializes from a stream.

private void
readObject(ObjectInputStream s)

Hides javax.swing.JComponent.readObject.

We use the ObjectInputStream "registerValidation" callback to update the UI for the entire tree of components after they've all been read in.

public void
removeCaretListener(CaretListener
the listener to be removed
listener
)

Removes a caret listener.

public static Keymap

Returns:

the keymap that was removed
removeKeymap
(String
the name of the keymap to remove
nm
)

Removes a named keymap previously added to the document.

public void
removeNotify()

Overrides javax.swing.JComponent.removeNotify.

Notifies this component that it no longer has a parent component.

private void
public void
replaceSelection(String
the content to replace the selection with
content
)

Replaces the currently selected content with new content represented by the given string.

protected void
restoreComposedText()

Restores composed text previously saved by saveComposedText.

protected boolean

Returns:

true if the composed text exists and is saved, false otherwise
saveComposedText
(int
document position to identify the composed text location
pos
)

Saves composed text around the specified position.

public void
select(int
the start position of the text
selectionStart
,
int
the end position of the text
selectionEnd
)

Selects the text between the specified start and end positions.

public void
selectAll()

Selects all the text in the TextComponent.

public void
setCaret(Caret
the caret
c
)

Sets the caret to be used.

public void
setCaretColor(Color
the color
c
)

Sets the current color used to render the caret.

public void
setCaretPosition(int
the position
position
)

Sets the position of the text insertion caret for the TextComponent.

public void
setComponentOrientation(ComponentOrientation o)

Overrides java.awt.Component.setComponentOrientation.

Sets the language-sensitive orientation that is to be used to order the elements or text within this component.

public void
setDisabledTextColor(Color
the color
c
)

Sets the current color used to render the disabled text.

public void
setDocument(Document
the document to display/edit
doc
)

Associates the editor with a text document.

public void
setDragEnabled(boolean
whether or not to enable automatic drag handling
b
)

Turns on or off automatic drag handling.

pack-priv Object

Returns:

any saved state for this component, or null if none
setDropLocation
(TransferHandler.DropLocation
the drop location (as calculated by dropLocationForPoint) or null if there's no longer a valid drop location
location
,
Object
the state object saved earlier for this component, or null
state
,
boolean
whether or not the method is being called because an actual drop occurred
forDrop
)

Hides javax.swing.JComponent.setDropLocation.

Called to set or clear the drop location during a DnD operation.

public final void
setDropMode(DropMode
the drop mode to use
dropMode
)

Sets the drop mode for this component.

public void
setEditable(boolean
the boolean to be set
b
)

Sets the specified boolean to indicate whether or not this TextComponent should be editable.

public void
setFocusAccelerator(char
the key
aKey
)

Sets the key accelerator that will cause the receiving text component to get the focus.

public void
setHighlighter(Highlighter
the highlighter
h
)

Sets the highlighter to be used.

private void
public void
setKeymap(Keymap
the keymap
map
)

Sets the keymap to use for binding events to actions.

public void
setMargin(Insets
the space between the border and the text
m
)

Sets margin space between the text component's border and its text.

public void
setNavigationFilter(NavigationFilter
the filter
filter
)

Sets the NavigationFilter.

public void
setSelectedTextColor(Color
the color
c
)

Sets the current color used to render the selected text.

public void
setSelectionColor(Color
the color
c
)

Sets the current color used to render the selection.

public void
setSelectionEnd(int
the end position of the text ≥ 0
selectionEnd
)

Sets the selection end to the specified position.

public void
setSelectionStart(int
the start position of the text ≥ 0
selectionStart
)

Sets the selection start to the specified position.

public void
setText(String
the new text to be set
t
)

Sets the text of this TextComponent to the specified text.

public void
setUI(TextUI
the factory
ui
)

Sets the user-interface factory for this text-oriented editor.

private boolean
shouldSynthensizeKeyEvents()

Returns true if KeyEvents should be synthesized from an InputEvent.

pack-priv void
updateInputMap(Keymap
the old Keymap
oldKm
,
Keymap
the new Keymap
newKm
)

Updates the InputMaps in response to a Keymap change.

public void
updateUI()

Overrides javax.swing.JComponent.updateUI.

Reloads the pluggable UI.

public int

Returns:

the offset ≥ 0 from the start of the document, or -1 if the component does not yet have a positive size.
viewToModel
(Point
the location in the view to translate
pt
)
Deprecated since 9. replaced by viewToModel2D(Point2D)

Converts the given place in the view coordinate system to the nearest representative location in the model.

public int

Returns:

the offset >= 0 from the start of the document, or -1 if the component does not yet have a positive size.
viewToModel2D
(Point2D
the location in the view to translate
pt
)

Converts the given place in the view coordinate system to the nearest representative location in the model.

public void
write(Writer
the output stream
out
)

Stores the contents of the model into the given stream.

Inherited from javax.swing.JComponent:
addAncestorListeneraddNotifyaddVetoableChangeListenercomputeVisibleRectcontainscreateToolTipdisableenablefirePropertyChangefirePropertyChangefirePropertyChangefireVetoableChangegetActionForKeyStrokegetActionMapgetAlignmentXgetAlignmentYgetAncestorListenersgetAutoscrollsgetBaselinegetBaselineResizeBehaviorgetBordergetBoundsgetClientPropertygetComponentGraphicsgetComponentPopupMenugetConditionForKeyStrokegetDebugGraphicsOptionsgetDefaultLocalegetFontMetricsgetGraphicsgetHeightgetInheritsPopupMenugetInputMapgetInputMapgetInputVerifiergetInsetsgetInsetsgetListenersgetLocationgetMaximumSizegetMinimumSizegetNextFocusableComponentgetPopupLocationgetPreferredSizegetRegisteredKeyStrokesgetRootPanegetSizegetToolTipLocationgetToolTipTextgetTopLevelAncestorgetTransferHandlergetUIClassIDgetVerifyInputWhenFocusTargetgetVetoableChangeListenersgetVisibleRectgetWidthgetXgetYgrabFocushideisDoubleBufferedisLightweightComponentisManagingFocusisOpaqueisOptimizedDrawingEnabledisPaintingForPrintisPaintingOriginisPaintingTileisRequestFocusEnabledisValidateRootpaintpaintBorderpaintChildrenpaintComponentpaintImmediatelypaintImmediatelyprintprintAllprintBorderprintChildrenprintComponentprocessComponentKeyEventprocessKeyBindingprocessKeyEventprocessMouseEventprocessMouseMotionEventputClientPropertyregisterKeyboardActionregisterKeyboardActionremoveAncestorListenerremoveVetoableChangeListenerrepaintrepaintrequestDefaultFocusrequestFocusrequestFocusrequestFocusInWindowrequestFocusInWindowresetKeyboardActionsreshaperevalidatescrollRectToVisiblesetActionMapsetAlignmentXsetAlignmentYsetAutoscrollssetBackgroundsetBordersetComponentPopupMenusetDebugGraphicsOptionssetDefaultLocalesetDoubleBufferedsetEnabledsetFocusTraversalKeyssetFontsetForegroundsetInheritsPopupMenusetInputMapsetInputVerifiersetMaximumSizesetMinimumSizesetNextFocusableComponentsetOpaquesetPreferredSizesetRequestFocusEnabledsetToolTipTextsetTransferHandlersetUIsetVerifyInputWhenFocusTargetsetVisibleunregisterKeyboardActionupdate