| Package | Description |
|---|---|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.plaf |
Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
|
| javax.swing.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
| javax.swing.plaf.multi |
Provides user interface objects that combine two or more look and feels.
|
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text components.
|
| javax.swing.tree |
Provides classes and interfaces for dealing with
javax.swing.JTree.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JEditorPane
A text component to edit various kinds of content.
|
class |
JFormattedTextField
JFormattedTextField extends
JTextField adding support for formatting arbitrary values, as well as retrieving a particular object once the user has edited the text.
|
class |
JPasswordField
JPasswordField is a lightweight component that allows the editing of a single line of text where the view indicates something was typed, but does not show the original characters.
|
class |
JTextArea
A
JTextArea is a multi-line area that displays plain text.
|
class |
JTextField
JTextField is a lightweight component that allows the editing of a single line of text.
|
class |
JTextPane
A text component that can be marked up with attributes that are represented graphically.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
TextUI.damageRange(JTextComponent
Causes the portion of the view responsible for the given part of the model to be repainted.
|
abstract void |
TextUI.damageRange(JTextComponent
Causes the portion of the view responsible for the given part of the model to be repainted.
|
abstract EditorKit |
TextUI.getEditorKit(JTextComponent
Fetches the binding of services that set a policy for the type of document being edited.
|
abstract int |
TextUI.getNextVisualPositionFrom(JTextComponent
Provides a way to determine the next visually represented model location that one might place a caret.
|
abstract View |
TextUI.getRootView(JTextComponent
Fetches a View with the allocation of the associated text component (i.e.
|
String |
TextUI.getToolTipText(JTextComponent
Returns the string to be used as the tooltip at the passed in location.
|
abstract Rectangle |
TextUI.modelToView(JTextComponent
Converts the given location in the model to a place in the view coordinate system.
|
abstract Rectangle |
TextUI.modelToView(JTextComponent
Converts the given location in the model to a place in the view coordinate system.
|
abstract int |
TextUI.viewToModel(JTextComponent
Converts the given place in the view coordinate system to the nearest representative location in the model.
|
abstract int |
TextUI.viewToModel(JTextComponent
Provides a mapping from the view coordinate space to the logical coordinate space of the model.
|
| Modifier and Type | Method and Description |
|---|---|
protected JTextComponent |
BasicTextUI.getComponent()
Fetches the text component associated with this UI implementation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BasicTextUI.damageRange(JTextComponent
Causes the portion of the view responsible for the given part of the model to be repainted.
|
void |
BasicTextUI.damageRange(JTextComponent
Causes the portion of the view responsible for the given part of the model to be repainted.
|
EditorKit |
BasicEditorPaneUI.getEditorKit(JTextComponent
Fetches the EditorKit for the UI.
|
EditorKit |
BasicTextUI.getEditorKit(JTextComponent
Fetches the EditorKit for the UI.
|
int |
BasicTextUI.getNextVisualPositionFrom(JTextComponent
Provides a way to determine the next visually represented model location that one might place a caret.
|
View |
BasicTextUI.getRootView(JTextComponent
Fetches a View with the allocation of the associated text component (i.e.
|
String |
BasicTextUI.getToolTipText(JTextComponent
Returns the string to be used as the tooltip at the passed in location.
|
Rectangle |
BasicTextUI.modelToView(JTextComponent
Converts the given location in the model to a place in the view coordinate system.
|
Rectangle |
BasicTextUI.modelToView(JTextComponent
Converts the given location in the model to a place in the view coordinate system.
|
int |
BasicTextUI.viewToModel(JTextComponent
Converts the given place in the view coordinate system to the nearest representative location in the model.
|
int |
BasicTextUI.viewToModel(JTextComponent
Converts the given place in the view coordinate system to the nearest representative location in the model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MultiTextUI.damageRange(JTextComponent
Invokes the
damageRange method on each UI handled by this object.
|
void |
MultiTextUI.damageRange(JTextComponent
Invokes the
damageRange method on each UI handled by this object.
|
EditorKit |
MultiTextUI.getEditorKit(JTextComponent
Invokes the
getEditorKit method on each UI handled by this object.
|
int |
MultiTextUI.getNextVisualPositionFrom(JTextComponent
Invokes the
getNextVisualPositionFrom method on each UI handled by this object.
|
View |
MultiTextUI.getRootView(JTextComponent
Invokes the
getRootView method on each UI handled by this object.
|
String |
MultiTextUI.getToolTipText(JTextComponent
Invokes the
getToolTipText method on each UI handled by this object.
|
Rectangle |
MultiTextUI.modelToView(JTextComponent
Invokes the
modelToView method on each UI handled by this object.
|
Rectangle |
MultiTextUI.modelToView(JTextComponent
Invokes the
modelToView method on each UI handled by this object.
|
int |
MultiTextUI.viewToModel(JTextComponent
Invokes the
viewToModel method on each UI handled by this object.
|
int |
MultiTextUI.viewToModel(JTextComponent
Invokes the
viewToModel method on each UI handled by this object.
|
| Modifier and Type | Method and Description |
|---|---|
protected JTextComponent |
DefaultCaret.getComponent()
Gets the text editor component that this caret is is bound to.
|
protected JTextComponent |
TextAction.getFocusedComponent()
Fetches the text component that currently has focus.
|
protected JTextComponent |
TextAction.getTextComponent(ActionEvent
Determines the component to use for the action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Highlighter.deinstall(JTextComponent
Called when the UI is being removed from the interface of a JTextComponent.
|
void |
DefaultCaret.deinstall(JTextComponent
Called when the UI is being removed from the interface of a JTextComponent.
|
void |
Caret.deinstall(JTextComponent
Called when the UI is being removed from the interface of a JTextComponent.
|
void |
DefaultHighlighter.deinstall(JTextComponent
Called when the UI is being removed from the interface of a JTextComponent.
|
int |
NavigationFilter.getNextVisualPositionFrom(JTextComponent
Returns the next visual position to place the caret at from an existing position.
|
static int |
Utilities.getNextWord(JTextComponent
Determines the start of the next word for the given location.
|
static Element |
Utilities.getParagraphElement(JTextComponent
Determines the element to use for a paragraph/line.
|
static int |
Utilities.getPositionAbove(JTextComponent
Determines the position in the model that is closest to the given view location in the row above.
|
static int |
Utilities.getPositionBelow(JTextComponent
Determines the position in the model that is closest to the given view location in the row below.
|
static int |
Utilities.getPreviousWord(JTextComponent
Determine the start of the prev word for the given location.
|
static int |
Utilities.getRowEnd(JTextComponent
Determines the ending row model position of the row that contains the specified model position.
|
static int |
Utilities.getRowStart(JTextComponent
Determines the starting row model position of the row that contains the specified model position.
|
static int |
Utilities.getWordEnd(JTextComponent
Determines the end of a word for the given location.
|
static int |
Utilities.getWordStart(JTextComponent
Determines the start of a word for the given model location.
|
void |
Highlighter.install(JTextComponent
Called when the UI is being installed into the interface of a JTextComponent.
|
void |
DefaultCaret.install(JTextComponent
Called when the UI is being installed into the interface of a JTextComponent.
|
void |
Caret.install(JTextComponent
Called when the UI is being installed into the interface of a JTextComponent.
|
void |
DefaultHighlighter.install(JTextComponent
Called when the UI is being installed into the interface of a JTextComponent.
|
void |
Highlighter.HighlightPainter.paint(Graphics
Renders the highlight.
|
void |
DefaultHighlighter.DefaultHighlightPainter.paint(Graphics
Paints a highlight.
|
Shape |
DefaultHighlighter.DefaultHighlightPainter.paintLayer(Graphics
Paints a portion of a highlight.
|
abstract Shape |
LayeredHighlighter.LayerPainter.paintLayer(Graphics
|
void |
DefaultHighlighter.paintLayeredHighlights(Graphics
When leaf Views (such as LabelView) are rendering they should call into this method.
|
abstract void |
LayeredHighlighter.paintLayeredHighlights(Graphics
When leaf Views (such as LabelView) are rendering they should call into this method.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultTreeCellEditor
TextField used when no editor is supplied.
|