Changed Methods |
void addCaretListener(CaretListener )
|
Documentation changed from old to new. |
Adds a caret listener for notification of any changes to the caret. |
Keymap addKeymap(String, Keymap)
|
Documentation changed from old to new. |
Adds a new keymap into the keymap hierarchy. |
void copy()
|
Documentation changed from old to new. |
Transfers the currently selected range in the associated text model to the system clipboard leaving the contents in the text model. |
void cut()
|
Documentation changed from old to new. |
Transfers the currently selected range in the associated text model to the system clipboard removing the contents from the model. |
AccessibleContext getAccessibleContext()
|
Documentation changed from old to new. |
Gets the AccessibleContext associated with this JTextComponent . |
Dimension getPreferredScrollableViewportSize()
|
Documentation changed from old to new. |
Returns the preferred size of the viewport for a view component. |
int getScrollableBlockIncrement(Rectangle, int, int)
|
Documentation changed from old to new. |
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. |
boolean getScrollableTracksViewportHeight()
|
Documentation changed from old to new. |
Returns true if a viewport should always force the height of this Scrollable to match the height of the viewport. |
boolean getScrollableTracksViewportWidth()
|
Documentation changed from old to new. |
Returns true if a viewport should always force the width of this Scrollable to match the width of the viewport. |
int getScrollableUnitIncrement(Rectangle, int, int)
|
Documentation changed from old to new. |
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. |
String getSelectedText()
|
Documentation changed from old to new. |
Returns the selected text contained in this TextComponent . |
boolean isEditable()
|
Documentation changed from old to new. |
Returns the boolean indicating whether this TextComponent is editable or not. |
boolean isFocusTraversable()
|
Documentation changed from old to new. Method was locally defined, but is now inherited from Component. Now deprecated.
|
As of 1.4, replaced by isFocusable() . |
void loadKeymap(Keymap, KeyBinding[], Action[])
|
Documentation changed from old to new. |
Loads a keymap with a bunch of bindings. |
void moveCaretPosition(int )
|
Documentation changed from old to new. |
Moves the caret to a new position leaving behind a mark defined by the last time setCaretPosition was called. |
String paramString()
|
Documentation changed from old to new. |
Returns a string representation of this JTextComponent . |
void paste()
|
Documentation changed from old to new. |
Transfers the contents of the system clipboard into the associated text model. |
void read(Reader, Object)
|
Documentation changed from old to new. |
Initializes from a stream. |
void removeCaretListener(CaretListener )
|
Documentation changed from old to new. |
Removes a caret listener. |
Keymap removeKeymap(String )
|
Documentation changed from old to new. |
Removes a named keymap previously added to the document. |
void removeNotify()
|
Documentation changed from old to new. |
|
void select(int, int)
|
Documentation changed from old to new. |
Selects the text between the specified start and end positions. |
void selectAll()
|
Documentation changed from old to new. |
Selects all the text in the TextComponent . |
void setCaretColor(Color )
|
Documentation changed from old to new. |
Sets the current color used to render the caret. |
void setCaretPosition(int )
|
Documentation changed from old to new. |
Sets the position of the text insertion caret for the TextComponent . |
void setComponentOrientation(ComponentOrientation )
|
Documentation changed from old to new. Method was inherited from Component, but is now defined locally.
|
|
void setEditable(boolean )
|
Documentation changed from old to new. |
Sets the specified boolean to indicate whether or not this TextComponent should be editable. |
void setHighlighter(Highlighter )
|
Documentation changed from old to new. |
Sets the highlighter to be used. |
void setKeymap(Keymap )
|
Documentation changed from old to new. |
Sets the keymap to use for binding events to actions. |
void setMargin(Insets )
|
Documentation changed from old to new. |
Sets margin space between the text component's border and its text. |
void setSelectedTextColor(Color )
|
Documentation changed from old to new. |
Sets the current color used to render the selected text. |
void setSelectionColor(Color )
|
Documentation changed from old to new. |
Sets the current color used to render the selection. |
void setSelectionEnd(int )
|
Documentation changed from old to new. |
Sets the selection end to the specified position. |
void setSelectionStart(int )
|
Documentation changed from old to new. |
Sets the selection start to the specified position. |
void setText(String )
|
Documentation changed from old to new. |
Sets the text of this TextComponent to the specified text. |
void updateUI()
|
Documentation changed from old to new. |
Reloads the pluggable UI. |
Keymap getKeymap(String )
|
Documentation changed from old to new. |
Fetches a named keymap previously added to the document. |
String getText()
|
Documentation changed from old to new. |
Returns the text contained in this TextComponent . |
void setUI(TextUI )
|
Documentation changed from old to new. |
Sets the user-interface factory for this text-oriented editor. |