public class CaretPositionCorrector extends Object
Modifier and Type | Method and Description |
---|---|
static void |
createCorrector(JFormattedTextField field,
char[] jumpCharacters,
char startIndexChar)
Creates an instance of the JSpinnerCaretPositionCorrector.
|
static void |
createCorrector(JFormattedTextField field,
char[] jumpCharacters,
int startPosition)
Creates an instance of the JSpinnerCaretPositionCorrector.
|
public static void createCorrector(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(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 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)