java.util.EventListener, javax.swing.event.CaretListenerpublic class CaretMonitor
extends java.lang.Object
implements javax.swing.event.CaretListener
| Constructor | Description |
|---|---|
CaretMonitor(javax.swing.text.JTextComponent text,
javax.swing.JLabel label) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
caretUpdate(javax.swing.event.CaretEvent evt) |
|
protected void |
finalize() |
|
java.lang.String |
getNoSelectionFormat() |
|
java.lang.String |
getSelectionFormat() |
|
void |
setNoSelectionFormat(java.lang.String noSelectionFormat) |
|
void |
setSelectionFormat(java.lang.String selectionFormat) |
|
protected void |
updateLabel(int pos) |
public CaretMonitor(javax.swing.text.JTextComponent text,
javax.swing.JLabel label)
public void caretUpdate(javax.swing.event.CaretEvent evt)
caretUpdate in interface javax.swing.event.CaretListenerprotected void updateLabel(int pos)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic java.lang.String getNoSelectionFormat()
public void setNoSelectionFormat(java.lang.String noSelectionFormat)
public java.lang.String getSelectionFormat()
public void setSelectionFormat(java.lang.String selectionFormat)