Example usage for Java javax.swing.text DefaultCaret fields, constructors, methods, implement or subclass
The text is from its open source code.
int | NEVER_UPDATE Indicates that the caret should remain at the same absolute position in the document regardless of any document updates, except when the document length becomes less than the current caret position due to removal. |
int | ALWAYS_UPDATE Indicates that the caret position is to be always updated accordingly to the document changes regardless whether the document updates are performed on the Event Dispatching Thread or not. |
DefaultCaret() Constructs a default caret. |
int | getUpdatePolicy() Gets the caret movement policy on document updates. |
void | setSelectionVisible(boolean vis) Changes the selection visibility. |
void | setUpdatePolicy(int policy) Sets the caret movement policy on the document updates. |