A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/javase/8/docs/api/javax/swing/text/DefaultFormatter.html below:

DefaultFormatter (Java Platform SE 8 )

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4