Installs the
DefaultFormatter
onto a particular
JFormattedTextField
.
This will invoke
valueToString
to convert the
current value from the
JFormattedTextField
to
a String. This will then install the
Action
s from
getActions
, the
DocumentFilter
returned from
getDocumentFilter
and the
NavigationFilter
returned from
getNavigationFilter
onto the
JFormattedTextField
.
Subclasses will typically only need to override this if they
wish to install additional listeners on the
JFormattedTextField
.
If there is a ParseException
in converting the
current value to a String, this will set the text to an empty
String, and mark the JFormattedTextField
as being
in an invalid state.
While this is a public method, this is typically only useful
for subclassers of JFormattedTextField
.
JFormattedTextField
will invoke this method at
the appropriate times when the value changes, or its internal
state changes.
Parameters:
- ftf - JFormattedTextField to format for, may be null indicating
uninstall from current JFormattedTextField.