public class CaretPositionCorrector
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
createCorrector(javax.swing.JFormattedTextField field,
char[] jumpCharacters,
char startIndexChar)
Creates an instance of the JSpinnerCaretPositionCorrector.
|
static void |
createCorrector(javax.swing.JFormattedTextField field,
char[] jumpCharacters,
int startPosition)
Creates an instance of the JSpinnerCaretPositionCorrector.
|
public static void createCorrector(javax.swing.JFormattedTextField field, char[] jumpCharacters, char startIndexChar)
null
for jumpCharacters if you only want to
let the position set to the click position.field
- The JFormattedTextField to correct the caret position of.jumpCharacters
- The character to jump from if the caret is in front of it.startIndexChar
- The character that is used to find the start position of the caret.public static void createCorrector(javax.swing.JFormattedTextField field, char[] jumpCharacters, int startPosition)
null
for jumpCharacters if you only want to
let the position set to the click position.field
- The JFormattedTextField to correct the caret position of.jumpCharacters
- The character to jump from if the caret is in front of it.startPosition
- The start position for the caret.TV-Browser 3.4.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)