Uses of Class javax.swing.text.JTextComponent

Uses in package javax.swing.plaf

Methods with parameter type javax.swing.text.JTextComponent

void
TextUI.damageRange(JTextComponent tc, int start, int end)
Repaints a range of characters.
void
TextUI.damageRange(JTextComponent tc, int start, int end, Position.Bias startBias, Position.Bias endBias)
Repaints a range of characters, also specifying the bias for the start and end of the range.
EditorKit
Retrieves the EditorKit managing policies and persistent state.
int
TextUI.getNextVisualPositionFrom(JTextComponent tc, int pos, Position.Bias bias, int direction, Position.Bias[] outBias)
Calculates the caret position that is visually next to the given position.
View
Retrieves the root of the view tree that visually presents the text.
String
Returns a String for presenting a tool tip at the specified location.
Rectangle
Calculates the geometric extent of the character at the given offset.
Rectangle
Calculates the geometric extent of the character at the given offset.
int
Finds the caret position which is closest to the specified visual location.
int
Finds the caret position which is closest to the specified visual location.

Uses in package javax.swing.plaf.multi

Methods with parameter type javax.swing.text.JTextComponent

void
MultiTextUI.damageRange(JTextComponent tc, int start, int end)
Calls the TextUI.damageRange(JTextComponent,int,int) method for all the UI delegates managed by this MultiTextUI.
void
MultiTextUI.damageRange(JTextComponent tc, int start, int end, Position.Bias startBias, Position.Bias endBias)
Calls the TextUI.damageRange(JTextComponent,int,int,Position.Bias,Position.Bias) method for all the UI delegates managed by this MultiTextUI.
EditorKit
Calls the TextUI.getEditorKit(JTextComponent) method for all the UI delegates managed by this MultiTextUI, returning the editor kit for the UI delegate from the primary look and feel.
int
MultiTextUI.getNextVisualPositionFrom(JTextComponent tc, int pos, Position.Bias bias, int direction, Position.Bias[] outBias)
Calls the TextUI.getNextVisualPositionFrom(JTextComponent,int,Position.Bias,int,Position.Bias[]) method for all the UI delegates managed by this MultiTextUI, returning the position for the UI delegate from the primary look and feel.
View
Calls the TextUI.getRootView(JTextComponent) method for all the UI delegates managed by this MultiTextUI, returning the view for the UI delegate from the primary look and feel.
Rectangle
Calls the TextUI.modelToView(JTextComponent,int) method for all the UI delegates managed by this MultiTextUI, returning the bounds for the UI delegate from the primary look and feel.
Rectangle
Calls the TextUI.modelToView(JTextComponent,int,Position.Bias) method for all the UI delegates managed by this MultiTextUI, returning the bounds for the UI delegate from the primary look and feel.
int
Calls the TextUI.viewToModel(JTextComponent,Point) method for all the UI delegates managed by this MultiTextUI, returning the position for the UI delegate from the primary look and feel.
int
Calls the TextUI.viewToModel(JTextComponent, Point, Bias[]) method for all the UI delegates managed by this MultiTextUI, returning the position for the UI delegate from the primary look and feel.

Uses in package javax.swing

Classes derived from javax.swing.text.JTextComponent

class
A powerful text editor component that can handle different types of content.
class
A text field that makes use of a formatter to display and edit a specific type of data.
class
class JPasswordField
class
The JTextArea component provides a multi-line area for displaying and editing plain text.
class
class
A powerful text component that supports styled content as well as embedding images and components.

Uses in package javax.swing.tree

Classes derived from javax.swing.text.JTextComponent

class
The default text field, used in the editing sessions.

Uses in package javax.swing.plaf.basic

Methods with parameter type javax.swing.text.JTextComponent

void
BasicTextUI.damageRange(JTextComponent t, int p0, int p1)
Marks the specified range inside the text component's model as damaged and queues a repaint request.
void
BasicTextUI.damageRange(JTextComponent t, int p0, int p1, Position.Bias firstBias, Position.Bias secondBias)
Marks the specified range inside the text component's model as damaged and queues a repaint request.
EditorKit
Gets the EditorKit for the text component.
EditorKit
Returns the EditorKit used for the text component that is managed by this UI.
int
Gets the next position inside the document model that is visible on screen, starting from pos.
View
Returns the root View of a text component.
Rectangle
Maps a position in the document into the coordinate space of the View.
Rectangle
Maps a position in the document into the coordinate space of the View.
int
Maps a point in the View coordinate space to a position inside a document model.
int
Maps a point in the View coordinate space to a position inside a document model.

Methods with return type javax.swing.text.JTextComponent

JTextComponent
The text component that is managed by this UI.

Uses in package javax.swing.text

Methods with parameter type javax.swing.text.JTextComponent

void
Deinstalls this Caret from the specified text component.
void
Deinstalls this Caret from the specified JTextComponent.
void
void
int
Returns the next visual position in the specified direction at which one would place a caret.
int
Finds the start of the next word for the given offset.
Element
Returns the paragraph element in the text component c at the specified location offset.
int
Utilities.getPositionAbove(JTextComponent c, int offset, int x)
Returns the document position that is closest above to the specified x coordinate in the row containing offset.
int
Utilities.getPositionBelow(JTextComponent c, int offset, int x)
Returns the document position that is closest below to the specified x coordinate in the row containing offset.
int
Finds the start of the previous word for the given offset.
int
Get the model position of the end of the row that contains the specified model position.
int
Get the model position of the start of the row that contains the specified model position.
int
Finds the end of a word for the given location.
int
Finds the start of a word for the given location.
void
Installs this Caret on the specified text component.
void
Installs this Caret on the specified JTextComponent.
void
void
void
void
Shape
Shape
LayeredHighlighter.LayerPainter.paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
void
DefaultHighlighter.paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
void
LayeredHighlighter.paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)

Methods with return type javax.swing.text.JTextComponent

JTextComponent
Returns the JTextComponent on which this Caret is installed.
JTextComponent
Returns the current focused JTextComponent object.
JTextComponent
Returns the JTextComponent object associated with the given ActionEvent.