| Package | Description | 
|---|---|
| java.text | Provides classes and interfaces for handling text, dates, numbers, and messages
in a manner independent of natural languages. | 
| 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.plaf.synth | 
      Synth is a skinnable look and feel in which all painting is
      delegated. | 
| javax.swing.text | Provides classes and interfaces that deal with editable
and noneditable text components. | 
| Modifier and Type | Method and Description | 
|---|---|
| Date | DateFormat. parse(String source)Parses text from the beginning of the given string to produce a date. | 
| Object[] | MessageFormat. parse(String source)Parses text from the beginning of the given string to produce an object
 array. | 
| Number | NumberFormat. parse(String source)Parses text from the beginning of the given string to produce a number. | 
| Object | Format. parseObject(String source)Parses text from the beginning of the given string to produce an object. | 
| Constructor and Description | 
|---|
| RuleBasedCollator(String rules)RuleBasedCollator constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | JSpinner. commitEdit()Commits the currently edited value to the  SpinnerModel. | 
| void | JSpinner.DefaultEditor. commitEdit()Pushes the currently edited value to the  SpinnerModel. | 
| void | JFormattedTextField. commitEdit()Forces the current value to be taken from the
  AbstractFormatterand set as the current value. | 
| abstract Object | JFormattedTextField.AbstractFormatter. stringToValue(String text)Parses  textreturning an arbitrary Object. | 
| abstract String | JFormattedTextField.AbstractFormatter. valueToString(Object value)Returns the string value to display for  value. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | SynthLookAndFeel. load(InputStream input,
    Class<?> resourceBase)Loads the set of  SynthStyles that will be used by
 thisSynthLookAndFeel. | 
| void | SynthLookAndFeel. load(URL url)Loads the set of  SynthStyles that will be used by
 thisSynthLookAndFeel. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | MaskFormatter. setMask(String mask)Sets the mask dictating the legal characters. | 
| Object | MaskFormatter. stringToValue(String value)Parses the text, returning the appropriate Object representation of
 the String  value. | 
| Object | DefaultFormatter. stringToValue(String string)Converts the passed in String into an instance of
  getValueClassby way of the constructor that
 takes a String argument. | 
| Object | InternationalFormatter. stringToValue(String text)Returns the  Objectrepresentation of theStringtext. | 
| String | MaskFormatter. valueToString(Object value)Returns a String representation of the Object  valuebased on the mask. | 
| String | DefaultFormatter. valueToString(Object value)Converts the passed in Object into a String by way of the
  toStringmethod. | 
| String | InternationalFormatter. valueToString(Object value)Returns a String representation of the Object  value. | 
| Constructor and Description | 
|---|
| MaskFormatter(String mask)Creates a  MaskFormatterwith the specified mask. | 
 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.