});
}
/** Add focus listener to set the location of the caret to the right place */
private void addFocusListenerToField(final JFormattedTextField field) {
field.addFocusListener(new FocusListener() {
public void focusGained(FocusEvent e) {
if(mCaretPosition == -1) {
if(mStartIndexChar != '\0') {
mCaretPosition = field.getText().indexOf(String.valueOf(mStartIndexChar)) + 1;
} else if(mStartPosition != -1) {