| Package | Description | 
|---|---|
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| javax.swing.text | Provides classes and interfaces that deal with editable
and noneditable text components. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected JFormattedTextField | JFormattedTextField.AbstractFormatter. getFormattedTextField()Returns the current  JFormattedTextFieldtheAbstractFormatteris installed on. | 
| JFormattedTextField | JSpinner.DefaultEditor. getTextField()Returns the  JFormattedTextFieldchild of this
 editor. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract JFormattedTextField.AbstractFormatter | JFormattedTextField.AbstractFormatterFactory. getFormatter(JFormattedTextField tf)Returns an  AbstractFormatterthat can handle formatting
 of the passed inJFormattedTextField. | 
| void | JFormattedTextField.AbstractFormatter. install(JFormattedTextField ftf)Installs the  AbstractFormatteronto a particularJFormattedTextField. | 
| Modifier and Type | Method and Description | 
|---|---|
| JFormattedTextField.AbstractFormatter | DefaultFormatterFactory. getFormatter(JFormattedTextField source)Returns either the default formatter, display formatter, editor
 formatter or null formatter based on the state of the
 JFormattedTextField. | 
| void | MaskFormatter. install(JFormattedTextField ftf)Installs the  DefaultFormatteronto a particularJFormattedTextField. | 
| void | DefaultFormatter. install(JFormattedTextField ftf)Installs the  DefaultFormatteronto a particularJFormattedTextField. | 
| void | InternationalFormatter. install(JFormattedTextField ftf)Installs the  DefaultFormatteronto a particularJFormattedTextField. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.