Uses of Package java.text (Java Platform SE 8 )
Date: 2026-04-17

# Uses of Package
java.text

- Packages that use java.text
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.
  java.awt.event | Provides interfaces and classes for dealing with different types of events fired by AWT components.
  java.awt.font | Provides classes and interface relating to fonts.
  java.awt.im | Provides classes and interfaces for the input method framework.
  java.awt.im.spi | Provides interfaces that enable the development of input methods that can be used with any Java runtime environment.
  java.text | Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
  java.text.spi | Service provider classes for the classes in the java.text package.
  java.time.format | Provides classes to print and parse dates and times.
  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.

- Classes in java.text used by java.awt
  Class and Description
  AttributedCharacterIterator An `AttributedCharacterIterator` allows iteration through both text and related attribute information.
  AttributedCharacterIterator.Attribute Defines attribute keys that are used to identify text attributes.
  CharacterIterator This interface defines a protocol for bidirectional iteration over text.

- Classes in java.text used by java.awt.event
  Class and Description
  AttributedCharacterIterator An `AttributedCharacterIterator` allows iteration through both text and related attribute information.

- Classes in java.text used by java.awt.font
  Class and Description
  AttributedCharacterIterator An `AttributedCharacterIterator` allows iteration through both text and related attribute information.
  AttributedCharacterIterator.Attribute Defines attribute keys that are used to identify text attributes.
  BreakIterator The `BreakIterator` class implements methods for finding the location of boundaries in text.

- Classes in java.text used by java.awt.im
  Class and Description
  AttributedCharacterIterator An `AttributedCharacterIterator` allows iteration through both text and related attribute information.
  AttributedCharacterIterator.Attribute Defines attribute keys that are used to identify text attributes.

- Classes in java.text used by java.awt.im.spi
  Class and Description
  AttributedCharacterIterator An `AttributedCharacterIterator` allows iteration through both text and related attribute information.

- Classes in java.text used by java.text
  Class and Description
  AttributedCharacterIterator An `AttributedCharacterIterator` allows iteration through both text and related attribute information.
  AttributedCharacterIterator.Attribute Defines attribute keys that are used to identify text attributes.
  Bidi This class implements the Unicode Bidirectional Algorithm.
  BreakIterator The `BreakIterator` class implements methods for finding the location of boundaries in text.
  CharacterIterator This interface defines a protocol for bidirectional iteration over text.
  CollationElementIterator The `CollationElementIterator` class is used as an iterator to walk through each character of an international string.
  CollationKey A `CollationKey` represents a `String` under the rules of a specific `Collator` object.
  Collator The `Collator` class performs locale-sensitive `String` comparison.
  DateFormat `DateFormat` is an abstract class for date/time formatting subclasses which formats and parses dates or time in a language-independent manner.
  DateFormat.Field Defines constants that are used as attribute keys in the `AttributedCharacterIterator` returned from `DateFormat.formatToCharacterIterator` and as field identifiers in `FieldPosition`.
  DateFormatSymbols `DateFormatSymbols` is a public class for encapsulating localizable date-time formatting data, such as the names of the months, the names of the days of the week, and the time zone data.
  DecimalFormatSymbols This class represents the set of symbols (such as the decimal separator, the grouping separator, and so on) needed by `DecimalFormat` to format numbers.
  FieldPosition `FieldPosition` is a simple class used by `Format` and its subclasses to identify fields in formatted output.
  Format `Format` is an abstract base class for formatting locale-sensitive information such as dates, messages, and numbers.
  Format.Field Defines constants that are used as attribute keys in the `AttributedCharacterIterator` returned from `Format.formatToCharacterIterator` and as field identifiers in `FieldPosition`.
  MessageFormat.Field Defines constants that are used as attribute keys in the `AttributedCharacterIterator` returned from `MessageFormat.formatToCharacterIterator`.
  Normalizer.Form This enum provides constants of the four Unicode normalization forms that are described in Unicode Standard Annex #15 — Unicode Normalization Forms and two methods to access them.
  NumberFormat `NumberFormat` is the abstract base class for all number formats.
  NumberFormat.Field Defines constants that are used as attribute keys in the `AttributedCharacterIterator` returned from `NumberFormat.formatToCharacterIterator` and as field identifiers in `FieldPosition`.
  ParseException Signals that an error has been reached unexpectedly while parsing.
  ParsePosition `ParsePosition` is a simple class used by `Format` and its subclasses to keep track of the current position during parsing.

- Classes in java.text used by java.text.spi
  Class and Description
  BreakIterator The `BreakIterator` class implements methods for finding the location of boundaries in text.
  Collator The `Collator` class performs locale-sensitive `String` comparison.
  DateFormat `DateFormat` is an abstract class for date/time formatting subclasses which formats and parses dates or time in a language-independent manner.
  DateFormatSymbols `DateFormatSymbols` is a public class for encapsulating localizable date-time formatting data, such as the names of the months, the names of the days of the week, and the time zone data.
  DecimalFormatSymbols This class represents the set of symbols (such as the decimal separator, the grouping separator, and so on) needed by `DecimalFormat` to format numbers.
  NumberFormat `NumberFormat` is the abstract base class for all number formats.

- Classes in java.text used by java.time.format
  Class and Description
  Format `Format` is an abstract base class for formatting locale-sensitive information such as dates, messages, and numbers.
  ParsePosition `ParsePosition` is a simple class used by `Format` and its subclasses to keep track of the current position during parsing.

- Classes in java.text used by javax.swing
  Class and Description
  AttributedCharacterIterator An `AttributedCharacterIterator` allows iteration through both text and related attribute information.
  DecimalFormat `DecimalFormat` is a concrete subclass of `NumberFormat` that formats decimal numbers.
  Format `Format` is an abstract base class for formatting locale-sensitive information such as dates, messages, and numbers.
  MessageFormat `MessageFormat` provides a means to produce concatenated messages in a language-neutral way.
  ParseException Signals that an error has been reached unexpectedly while parsing.
  SimpleDateFormat `SimpleDateFormat` is a concrete class for formatting and parsing dates in a locale-sensitive manner.

- Classes in java.text used by javax.swing.plaf.synth
  Class and Description
  ParseException Signals that an error has been reached unexpectedly while parsing.

- Classes in java.text used by javax.swing.text
  Class and Description
  CharacterIterator This interface defines a protocol for bidirectional iteration over text.
  DateFormat `DateFormat` is an abstract class for date/time formatting subclasses which formats and parses dates or time in a language-independent manner.
  Format `Format` is an abstract base class for formatting locale-sensitive information such as dates, messages, and numbers.
  Format.Field Defines constants that are used as attribute keys in the `AttributedCharacterIterator` returned from `Format.formatToCharacterIterator` and as field identifiers in `FieldPosition`.
  MessageFormat `MessageFormat` provides a means to produce concatenated messages in a language-neutral way.
  NumberFormat `NumberFormat` is the abstract base class for all number formats.
  ParseException Signals that an error has been reached unexpectedly while parsing.

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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.