Uses of Class
javax.swing.text.JTextComponent
| 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. |
-
Uses of JTextComponent in javax.swing
Subclasses of JTextComponent in javax.swing Modifier and Type Class Description classJEditorPaneA text component to edit various kinds of content.classJFormattedTextFieldJFormattedTextFieldextendsJTextFieldadding support for formatting arbitrary values, as well as retrieving a particular object once the user has edited the text.classJPasswordFieldJPasswordFieldis 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.classJTextAreaAJTextAreais a multi-line area that displays plain text.classJTextFieldJTextFieldis a lightweight component that allows the editing of a single line of text.classJTextPaneA text component that can be marked up with attributes that are represented graphically. -
Uses of JTextComponent in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type JTextComponent Modifier and Type Method Description abstract voidTextUI. damageRange(JTextComponent t, int p0, int p1)Causes the portion of the view responsible for the given part of the model to be repainted.abstract voidTextUI. damageRange(JTextComponent t, int p0, int p1, Position.Bias firstBias, Position.Bias secondBias)Causes the portion of the view responsible for the given part of the model to be repainted.abstract EditorKitTextUI. getEditorKit(JTextComponent t)Fetches the binding of services that set a policy for the type of document being edited.abstract intTextUI. getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet)Provides a way to determine the next visually represented model location that one might place a caret.abstract ViewTextUI. getRootView(JTextComponent t)Fetches a View with the allocation of the associated text component (i.e. the root of the hierarchy) that can be traversed to determine how the model is being represented spatially.StringTextUI. getToolTipText(JTextComponent t, Point pt)Deprecated.replaced byTextUI.getToolTipText2D(JTextComponent, Point2D)StringTextUI. getToolTipText2D(JTextComponent t, Point2D pt)Returns the string to be used as the tooltip at the passed in location.abstract RectangleTextUI. modelToView(JTextComponent t, int pos)Deprecated.abstract RectangleTextUI. modelToView(JTextComponent t, int pos, Position.Bias bias)Deprecated.Rectangle2DTextUI. modelToView2D(JTextComponent t, int pos, Position.Bias bias)Converts the given location in the model to a place in the view coordinate system.abstract intTextUI. viewToModel(JTextComponent t, Point pt)Deprecated.abstract intTextUI. viewToModel(JTextComponent t, Point pt, Position.Bias[] biasReturn)Deprecated.intTextUI. viewToModel2D(JTextComponent t, Point2D pt, Position.Bias[] biasReturn)Provides a mapping from the view coordinate space to the logical coordinate space of the model. -
Uses of JTextComponent in javax.swing.plaf.basic
Methods in javax.swing.plaf.basic that return JTextComponent Modifier and Type Method Description protected JTextComponentBasicTextUI. getComponent()Fetches the text component associated with this UI implementation.Methods in javax.swing.plaf.basic with parameters of type JTextComponent Modifier and Type Method Description voidBasicTextUI. damageRange(JTextComponent tc, int p0, int p1)Causes the portion of the view responsible for the given part of the model to be repainted.voidBasicTextUI. damageRange(JTextComponent t, int p0, int p1, Position.Bias p0Bias, Position.Bias p1Bias)Causes the portion of the view responsible for the given part of the model to be repainted.EditorKitBasicEditorPaneUI. getEditorKit(JTextComponent tc)Fetches the EditorKit for the UI.EditorKitBasicTextUI. getEditorKit(JTextComponent tc)Fetches the EditorKit for the UI.ViewBasicTextUI. getRootView(JTextComponent tc)Fetches a View with the allocation of the associated text component (i.e. the root of the hierarchy) that can be traversed to determine how the model is being represented spatially.StringBasicTextUI. getToolTipText(JTextComponent t, Point pt)Returns the string to be used as the tooltip at the passed in location.RectangleBasicTextUI. modelToView(JTextComponent tc, int pos)Deprecated.RectangleBasicTextUI. modelToView(JTextComponent tc, int pos, Position.Bias bias)Deprecated.intBasicTextUI. viewToModel(JTextComponent tc, Point pt)Deprecated.intBasicTextUI. viewToModel(JTextComponent tc, Point pt, Position.Bias[] biasReturn)Deprecated. -
Uses of JTextComponent in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi with parameters of type JTextComponent Modifier and Type Method Description voidMultiTextUI. damageRange(JTextComponent a, int b, int c)Invokes thedamageRangemethod on each UI handled by this object.voidMultiTextUI. damageRange(JTextComponent a, int b, int c, Position.Bias d, Position.Bias e)Invokes thedamageRangemethod on each UI handled by this object.EditorKitMultiTextUI. getEditorKit(JTextComponent a)Invokes thegetEditorKitmethod on each UI handled by this object.intMultiTextUI. getNextVisualPositionFrom(JTextComponent a, int b, Position.Bias c, int d, Position.Bias[] e)Invokes thegetNextVisualPositionFrommethod on each UI handled by this object.ViewMultiTextUI. getRootView(JTextComponent a)Invokes thegetRootViewmethod on each UI handled by this object.StringMultiTextUI. getToolTipText(JTextComponent a, Point b)Invokes thegetToolTipTextmethod on each UI handled by this object.RectangleMultiTextUI. modelToView(JTextComponent a, int b)Deprecated.RectangleMultiTextUI. modelToView(JTextComponent a, int b, Position.Bias c)Deprecated.intMultiTextUI. viewToModel(JTextComponent a, Point b)Deprecated.intMultiTextUI. viewToModel(JTextComponent a, Point b, Position.Bias[] c)Deprecated. -
Uses of JTextComponent in javax.swing.text
Methods in javax.swing.text that return JTextComponent Modifier and Type Method Description protected JTextComponentDefaultCaret. getComponent()Gets the text editor component that this caret is is bound to.protected JTextComponentTextAction. getFocusedComponent()Fetches the text component that currently has focus.protected JTextComponentTextAction. getTextComponent(ActionEvent e)Determines the component to use for the action.Methods in javax.swing.text with parameters of type JTextComponent Modifier and Type Method Description voidCaret. deinstall(JTextComponent c)Called when the UI is being removed from the interface of a JTextComponent.voidDefaultCaret. deinstall(JTextComponent c)Called when the UI is being removed from the interface of a JTextComponent.voidDefaultHighlighter. deinstall(JTextComponent c)Called when the UI is being removed from the interface of a JTextComponent.voidHighlighter. deinstall(JTextComponent c)Called when the UI is being removed from the interface of a JTextComponent.intNavigationFilter. getNextVisualPositionFrom(JTextComponent text, int pos, Position.Bias bias, int direction, Position.Bias[] biasRet)Returns the next visual position to place the caret at from an existing position.static intUtilities. getNextWord(JTextComponent c, int offs)Determines the start of the next word for the given location.static ElementUtilities. getParagraphElement(JTextComponent c, int offs)Determines the element to use for a paragraph/line.static intUtilities. getPositionAbove(JTextComponent c, int offs, float x)Determines the position in the model that is closest to the given view location in the row above.static intUtilities. getPositionAbove(JTextComponent c, int offs, int x)Deprecated.static intUtilities. getPositionBelow(JTextComponent c, int offs, float x)Determines the position in the model that is closest to the given view location in the row below.static intUtilities. getPositionBelow(JTextComponent c, int offs, int x)Deprecated.static intUtilities. getPreviousWord(JTextComponent c, int offs)Determine the start of the prev word for the given location.static intUtilities. getRowEnd(JTextComponent c, int offs)Determines the ending row model position of the row that contains the specified model position.static intUtilities. getRowStart(JTextComponent c, int offs)Determines the starting row model position of the row that contains the specified model position.static intUtilities. getWordEnd(JTextComponent c, int offs)Determines the end of a word for the given location.static intUtilities. getWordStart(JTextComponent c, int offs)Determines the start of a word for the given model location.voidCaret. install(JTextComponent c)Called when the UI is being installed into the interface of a JTextComponent.voidDefaultCaret. install(JTextComponent c)Called when the UI is being installed into the interface of a JTextComponent.voidDefaultHighlighter. install(JTextComponent c)Called when the UI is being installed into the interface of a JTextComponent.voidHighlighter. install(JTextComponent c)Called when the UI is being installed into the interface of a JTextComponent.voidDefaultHighlighter.DefaultHighlightPainter. paint(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c)Paints a highlight.voidHighlighter.HighlightPainter. paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c)Renders the highlight.ShapeDefaultHighlighter.DefaultHighlightPainter. paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view)Paints a portion of a highlight.abstract ShapeLayeredHighlighter.LayerPainter. paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)voidDefaultHighlighter. paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)When leaf Views (such as LabelView) are rendering they should call into this method.abstract voidLayeredHighlighter. paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)When leaf Views (such as LabelView) are rendering they should call into this method. -
Uses of JTextComponent in javax.swing.tree
Subclasses of JTextComponent in javax.swing.tree Modifier and Type Class Description classDefaultTreeCellEditor.DefaultTextFieldTextFieldused when no editor is supplied.