Java javax.swing.text DefaultCaret fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.text DefaultCaret fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.text DefaultCaret.

The text is from its open source code.

Subclass

javax.swing.text.DefaultCaret has subclasses.
Click this link to see all its subclasses.

Field

intNEVER_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.
intALWAYS_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.

Constructor

DefaultCaret()
Constructs a default caret.

Method

intgetUpdatePolicy()
Gets the caret movement policy on document updates.
voidsetSelectionVisible(boolean vis)
Changes the selection visibility.
voidsetUpdatePolicy(int policy)
Sets the caret movement policy on the document updates.