JavaTM 2 Platform
Std. Ed. v1.4.1

Uses of Class
java.util.Locale

Packages that use Locale
java.applet Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context. 
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
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.beans.beancontext Provides classes and interfaces relating to bean context. 
java.lang Provides classes that are fundamental to the design of the Java programming language. 
java.nio.charset Defines charsets, decoders, and encoders, for translating between bytes and Unicode characters. 
java.text Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages. 
java.util Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). 
javax.accessibility Defines a contract between user-interface components and an assistive technology that provides access to those components. 
javax.imageio The main package of the Java Image I/O API. 
javax.imageio.metadata A package of the Java Image I/O API dealing with reading and writing metadata. 
javax.imageio.plugins.jpeg Classes supporting the built-in JPEG plug-in. 
javax.imageio.spi A package of the Java Image I/O API containing the plug-in interfaces for readers, writers, transcoders, and streams, and a runtime registry. 
javax.print.attribute Provides classes and interfaces that describe the types of JavaTM Print Service attributes and how they can be collected into attribute sets. 
javax.print.attribute.standard Package javax.print.attribute.standard contains classes for specific printing attributes. 
javax.security.auth.callback This package provides the classes necessary for services to interact with applications in order to retrieve information (authentication data including usernames or passwords, for example) or to display information (error and warning messages, for example). 
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.table Provides classes and interfaces for dealing with javax.swing.JTable
org.xml.sax Provides the classes and interfaces for the Simple API for XML (SAX) which is a component of the Java API for XML Processing
org.xml.sax.helpers Provides helper classes for the Simple API for XML (SAX) which is a component of the Java API for XML Processing
 

Uses of Locale in java.applet
 

Methods in java.applet that return Locale
 Locale Applet.getLocale()
          Gets the Locale for the applet, if it has been set.
 

Uses of Locale in java.awt
 

Methods in java.awt that return Locale
 Locale Window.getLocale()
          Gets the Locale object that is associated with this window, if the locale has been set.
 Locale List.AccessibleAWTList.AccessibleAWTListChild.getLocale()
          Gets the locale of the component.
 Locale MenuComponent.AccessibleAWTMenuComponent.getLocale()
          Returns the locale of this object.
 Locale Component.getLocale()
          Gets the locale of this component.
 Locale Component.AccessibleAWTComponent.getLocale()
          Returns the locale of this object.
 

Methods in java.awt with parameters of type Locale
abstract  String[] GraphicsEnvironment.getAvailableFontFamilyNames(Locale l)
          Returns an array containing the localized names of all font families available in this GraphicsEnvironment.
static ComponentOrientation ComponentOrientation.getOrientation(Locale locale)
          Returns the orientation that is appropriate for the given locale.
 String Font.getFamily(Locale l)
          Returns the family name of this Font, localized for the specified locale.
 String Font.getFontName(Locale l)
          Returns the font face name of the Font, localized for the specified locale.
 void Component.setLocale(Locale l)
          Sets the locale of this component.
 

Uses of Locale in java.awt.im
 

Methods in java.awt.im that return Locale
 Locale InputContext.getLocale()
          Returns the current locale of the current input method or keyboard layout.
 

Methods in java.awt.im with parameters of type Locale
 boolean InputContext.selectInputMethod(Locale locale)
          Attempts to select an input method or keyboard layout that supports the given locale, and returns a value indicating whether such an input method or keyboard layout has been successfully selected.
 

Uses of Locale in java.awt.im.spi
 

Methods in java.awt.im.spi that return Locale
 Locale[] InputMethodDescriptor.getAvailableLocales()
          Returns the locales supported by the corresponding input method.
 Locale InputMethod.getLocale()
          Returns the current input locale.
 

Methods in java.awt.im.spi with parameters of type Locale
 String InputMethodDescriptor.getInputMethodDisplayName(Locale inputLocale, Locale displayLanguage)
          Returns the user-visible name of the corresponding input method for the given input locale in the language in which the name will be displayed.
 String InputMethodDescriptor.getInputMethodDisplayName(Locale inputLocale, Locale displayLanguage)
          Returns the user-visible name of the corresponding input method for the given input locale in the language in which the name will be displayed.
 Image InputMethodDescriptor.getInputMethodIcon(Locale inputLocale)
          Returns an icon for the corresponding input method.
 boolean InputMethod.setLocale(Locale locale)
          Attempts to set the input locale.
 

Uses of Locale in java.beans.beancontext
 

Fields in java.beans.beancontext declared as Locale
protected  Locale BeanContextSupport.locale
          The current locale of this BeanContext.
 

Methods in java.beans.beancontext that return Locale
 Locale BeanContextSupport.getLocale()
          Gets the locale for this BeanContext.
 

Methods in java.beans.beancontext with parameters of type Locale
 void BeanContextSupport.setLocale(Locale newLocale)
          Sets the locale of this BeanContext.
 

Constructors in java.beans.beancontext with parameters of type Locale
BeanContextServicesSupport(BeanContextServices peer, Locale lcle, boolean dTime, boolean visible)
           Construct a BeanContextServicesSupport instance
BeanContextServicesSupport(BeanContextServices peer, Locale lcle, boolean dtime)
          Create an instance using the specified Locale and design mode.
BeanContextServicesSupport(BeanContextServices peer, Locale lcle)
          Create an instance using the specified locale
BeanContextSupport(BeanContext peer, Locale lcle, boolean dTime, boolean visible)
          Construct a BeanContextSupport instance
BeanContextSupport(BeanContext peer, Locale lcle, boolean dtime)
          Create an instance using the specified Locale and design mode.
BeanContextSupport(BeanContext peer, Locale lcle)
          Create an instance using the specified locale
 

Uses of Locale in java.lang
 

Methods in java.lang with parameters of type Locale
 String String.toLowerCase(Locale locale)
          Converts all of the characters in this String to lower case using the rules of the given Locale.
 String String.toUpperCase(Locale locale)
          Converts all of the characters in this String to upper case using the rules of the given Locale.
 

Uses of Locale in java.nio.charset
 

Methods in java.nio.charset with parameters of type Locale
 String Charset.displayName(Locale locale)
          Returns this charset's human-readable name for the given locale.
 

Uses of Locale in java.text
 

Methods in java.text that return Locale
static Locale[] BreakIterator.getAvailableLocales()
          Get the set of Locales for which BreakIterators are installed
static Locale[] Collator.getAvailableLocales()
          Get the set of Locales for which Collators are installed.
static Locale[] DateFormat.getAvailableLocales()
          Gets the set of locales for which DateFormats are installed.
static Locale[] NumberFormat.getAvailableLocales()
          Get the set of Locales for which NumberFormats are installed
 Locale MessageFormat.getLocale()
          Gets the locale that's used when creating or comparing subformats.
 

Methods in java.text with parameters of type Locale
static BreakIterator BreakIterator.getWordInstance(Locale where)
          Create BreakIterator for word-breaks using specified locale.
static BreakIterator BreakIterator.getLineInstance(Locale where)
          Create BreakIterator for line-breaks using specified locale.
static BreakIterator BreakIterator.getCharacterInstance(Locale where)
          Create BreakIterator for character-breaks using specified locale Returns an instance of a BreakIterator implementing character breaks.
static BreakIterator BreakIterator.getSentenceInstance(Locale where)
          Create BreakIterator for sentence-breaks using specified locale Returns an instance of a BreakIterator implementing sentence breaks.
static Collator Collator.getInstance(Locale desiredLocale)
          Gets the Collator for the desired locale.
static DateFormat DateFormat.getTimeInstance(int style, Locale aLocale)
          Gets the time formatter with the given formatting style for the given locale.
static DateFormat DateFormat.getDateInstance(int style, Locale aLocale)
          Gets the date formatter with the given formatting style for the given locale.
static DateFormat DateFormat.getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale)
          Gets the date/time formatter with the given formatting styles for the given locale.
static NumberFormat NumberFormat.getInstance(Locale inLocale)
          Returns the default number format for the specified locale.
static NumberFormat NumberFormat.getNumberInstance(Locale inLocale)
          Returns a general-purpose number format for the specified locale.
static NumberFormat NumberFormat.getIntegerInstance(Locale inLocale)
          Returns an integer number format for the specified locale.
static NumberFormat NumberFormat.getCurrencyInstance(Locale inLocale)
          Returns a currency format for the specified locale.
static NumberFormat NumberFormat.getPercentInstance(Locale inLocale)
          Returns a percentage format for the specified locale.
 void MessageFormat.setLocale(Locale locale)
          Sets the locale to be used when creating or comparing subformats.
 

Constructors in java.text with parameters of type Locale
DateFormatSymbols(Locale locale)
          Construct a DateFormatSymbols object by loading format data from resources for the given locale.
SimpleDateFormat(String pattern, Locale locale)
          Constructs a SimpleDateFormat using the given pattern and the default date format symbols for the given locale.
DecimalFormatSymbols(Locale locale)
          Create a DecimalFormatSymbols object for the given locale.
MessageFormat(String pattern, Locale locale)
          Constructs a MessageFormat for the specified locale and pattern.
 

Uses of Locale in java.util
 

Fields in java.util declared as Locale
static Locale Locale.ENGLISH
          Useful constant for language.
static Locale Locale.FRENCH
          Useful constant for language.
static Locale Locale.GERMAN
          Useful constant for language.
static Locale Locale.ITALIAN
          Useful constant for language.
static Locale Locale.JAPANESE
          Useful constant for language.
static Locale Locale.KOREAN
          Useful constant for language.
static Locale Locale.CHINESE
          Useful constant for language.
static Locale Locale.SIMPLIFIED_CHINESE
          Useful constant for language.
static Locale Locale.TRADITIONAL_CHINESE
          Useful constant for language.
static Locale Locale.FRANCE
          Useful constant for country.
static Locale Locale.GERMANY
          Useful constant for country.
static Locale Locale.ITALY
          Useful constant for country.
static Locale Locale.JAPAN
          Useful constant for country.
static Locale Locale.KOREA
          Useful constant for country.
static Locale Locale.CHINA
          Useful constant for country.
static Locale Locale.PRC
          Useful constant for country.
static Locale Locale.TAIWAN
          Useful constant for country.
static Locale Locale.UK
          Useful constant for country.
static Locale Locale.US
          Useful constant for country.
static Locale Locale.CANADA
          Useful constant for country.
static Locale Locale.CANADA_FRENCH
          Useful constant for country.
 

Methods in java.util that return Locale
static Locale[] Calendar.getAvailableLocales()
          Gets the list of locales for which Calendars are installed.
 Locale ResourceBundle.getLocale()
          Returns the locale of this resource bundle.
static Locale Locale.getDefault()
          Gets the current value of the default locale for this instance of the Java Virtual Machine.
static Locale[] Locale.getAvailableLocales()
          Returns a list of all installed locales.
 

Methods in java.util with parameters of type Locale
static Currency Currency.getInstance(Locale locale)
          Returns the Currency instance for the country of the given locale.
 String Currency.getSymbol(Locale locale)
          Gets the symbol of this currency for the specified locale.
 String TimeZone.getDisplayName(Locale locale)
          Returns a name of this time zone suitable for presentation to the user in the specified locale.
 String TimeZone.getDisplayName(boolean daylight, int style, Locale locale)
          Returns a name of this time zone suitable for presentation to the user in the specified locale.
static Calendar Calendar.getInstance(Locale aLocale)
          Gets a calendar using the default time zone and specified locale.
static Calendar Calendar.getInstance(TimeZone zone, Locale aLocale)
          Gets a calendar with the specified time zone and locale.
static ResourceBundle ResourceBundle.getBundle(String baseName, Locale locale)
          Gets a resource bundle using the specified base name and locale, and the caller's class loader.
static ResourceBundle ResourceBundle.getBundle(String baseName, Locale locale, ClassLoader loader)
          Gets a resource bundle using the specified base name, locale, and class loader.
static void Locale.setDefault(Locale newLocale)
          Sets the default locale for this instance of the Java Virtual Machine.
 String Locale.getDisplayLanguage(Locale inLocale)
          Returns a name for the locale's language that is appropriate for display to the user.
 String Locale.getDisplayCountry(Locale inLocale)
          Returns a name for the locale's country that is appropriate for display to the user.
 String Locale.getDisplayVariant(Locale inLocale)
          Returns a name for the locale's variant code that is appropriate for display to the user.
 String Locale.getDisplayName(Locale inLocale)
          Returns a name for the locale that is appropriate for display to the user.
 

Constructors in java.util with parameters of type Locale
GregorianCalendar(Locale aLocale)
          Constructs a GregorianCalendar based on the current time in the default time zone with the given locale.
GregorianCalendar(TimeZone zone, Locale aLocale)
          Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.
Calendar(TimeZone zone, Locale aLocale)
          Constructs a calendar with the specified time zone and locale.
 

Uses of Locale in javax.accessibility
 

Methods in javax.accessibility that return Locale
abstract  Locale AccessibleContext.getLocale()
          Gets the locale of the component.
 

Methods in javax.accessibility with parameters of type Locale
protected  String AccessibleBundle.toDisplayString(String resourceBundleName, Locale locale)
          Obtains the key as a localized string.
 String AccessibleBundle.toDisplayString(Locale locale)
          Obtains the key as a localized string.
 

Uses of Locale in javax.imageio
 

Fields in javax.imageio declared as Locale
protected  Locale ImageWriteParam.locale
          A Locale to be used to localize compression type names and quality descriptions, or null to use a default Locale.
protected  Locale[] ImageWriter.availableLocales
          An array of Locales that may be used to localize warning messages and compression setting values, or null if localization is not supported.
protected  Locale ImageWriter.locale
          The current Locale to be used for localization, or null if none has been set.
protected  Locale[] ImageReader.availableLocales
          An array of Locales which may be used to localize warning messages, or null if localization is not supported.
protected  Locale ImageReader.locale
          The current Locale to be used for localization, or null if none has been set.
 

Methods in javax.imageio that return Locale
 Locale ImageWriteParam.getLocale()
          Returns the currently set Locale, or null if only a default Locale is supported.
 Locale[] ImageWriter.getAvailableLocales()
          Returns an array of Locales that may be used to localize warning listeners and compression settings.
 Locale ImageWriter.getLocale()
          Returns the currently set Locale, or null if none has been set.
 Locale[] ImageReader.getAvailableLocales()
          Returns an array of Locales that may be used to localize warning listeners and compression settings.
 Locale ImageReader.getLocale()
          Returns the currently set Locale, or null if none has been set.
 

Methods in javax.imageio with parameters of type Locale
 void ImageWriter.setLocale(Locale locale)
          Sets the current Locale of this ImageWriter to the given value.
 void ImageReader.setLocale(Locale locale)
          Sets the current Locale of this ImageReader to the given value.
 

Constructors in javax.imageio with parameters of type Locale
ImageWriteParam(Locale locale)
          Constructs an ImageWriteParam set to use a given Locale.
 

Uses of Locale in javax.imageio.metadata
 

Methods in javax.imageio.metadata with parameters of type Locale
 String IIOMetadataFormatImpl.getElementDescription(String elementName, Locale locale)
          Returns a String containing a description of the named element, or null.
 String IIOMetadataFormatImpl.getAttributeDescription(String elementName, String attrName, Locale locale)
          Returns a String containing a description of the named attribute, or null.
 String IIOMetadataFormat.getElementDescription(String elementName, Locale locale)
          Returns a String containing a description of the named element, or null.
 String IIOMetadataFormat.getAttributeDescription(String elementName, String attrName, Locale locale)
          Returns a String containing a description of the named attribute, or null.
 

Uses of Locale in javax.imageio.plugins.jpeg
 

Constructors in javax.imageio.plugins.jpeg with parameters of type Locale
JPEGImageWriteParam(Locale locale)
          Constructs a JPEGImageWriteParam.
 

Uses of Locale in javax.imageio.spi
 

Methods in javax.imageio.spi with parameters of type Locale
abstract  String IIOServiceProvider.getDescription(Locale locale)
          Returns a brief, human-readable description of this service provider and its associated implementation.
 

Uses of Locale in javax.print.attribute
 

Methods in javax.print.attribute that return Locale
 Locale TextSyntax.getLocale()
          Returns this text attribute's text string's natural language (locale).
 

Constructors in javax.print.attribute with parameters of type Locale
TextSyntax(String value, Locale locale)
          Constructs a TextAttribute with the specified string and locale.
 

Uses of Locale in javax.print.attribute.standard
 

Constructors in javax.print.attribute.standard with parameters of type Locale
RequestingUserName(String userName, Locale locale)
          Constructs a new requesting user name attribute with the given user name and locale.
PrinterName(String printerName, Locale locale)
          Constructs a new printer name attribute with the given name and locale.
PrinterMessageFromOperator(String message, Locale locale)
          Constructs a new printer message from operator attribute with the given message and locale.
PrinterMakeAndModel(String makeAndModel, Locale locale)
          Constructs a new printer make and model attribute with the given make and model string and locale.
PrinterLocation(String location, Locale locale)
          Constructs a new printer location attribute with the given location and locale.
PrinterInfo(String info, Locale locale)
          Constructs a new printer info attribute with the given information string and locale.
OutputDeviceAssigned(String deviceName, Locale locale)
          Constructs a new output device assigned attribute with the given device name and locale.
JobOriginatingUserName(String userName, Locale locale)
          Constructs a new job originating user name attribute with the given user name and locale.
JobName(String jobName, Locale locale)
          Constructs a new job name attribute with the given job name and locale.
JobMessageFromOperator(String message, Locale locale)
          Constructs a new job message from operator attribute with the given message and locale.
DocumentName(String documentName, Locale locale)
          Constructs a new document name attribute with the given document name and locale.
 

Uses of Locale in javax.security.auth.callback
 

Methods in javax.security.auth.callback that return Locale
 Locale LanguageCallback.getLocale()
          Get the retrieved Locale.
 

Methods in javax.security.auth.callback with parameters of type Locale
 void LanguageCallback.setLocale(Locale locale)
          Set the retrieved Locale.
 

Uses of Locale in javax.swing
 

Methods in javax.swing that return Locale
 Locale ImageIcon.AccessibleImageIcon.getLocale()
          Returns the locale of this object.
 Locale JList.AccessibleJList.AccessibleJListChild.getLocale()
           
 Locale JTree.AccessibleJTree.AccessibleJTreeNode.getLocale()
          Gets the locale of the component.
 Locale JTable.AccessibleJTable.AccessibleJTableCell.getLocale()
          Gets the locale of the component.
 Locale UIDefaults.getDefaultLocale()
          Returns the default locale.
static Locale JComponent.getDefaultLocale()
          Returns the default locale used to initialize each JComponent's locale property upon creation.
 

Methods in javax.swing with parameters of type Locale
 Object UIDefaults.get(Object key, Locale l)
          Returns the value for key associated with the given locale.
 Font UIDefaults.getFont(Object key, Locale l)
          If the value of key for the given Locale is a Font return it, otherwise return null.
 Color UIDefaults.getColor(Object key, Locale l)
          If the value of key for the given Locale is a Color return it, otherwise return null.
 Icon UIDefaults.getIcon(Object key, Locale l)
          If the value of key for the given Locale is an Icon return it, otherwise return null.
 Border UIDefaults.getBorder(Object key, Locale l)
          If the value of key for the given Locale is a Border return it, otherwise return null.
 String UIDefaults.getString(Object key, Locale l)
          If the value of key for the given Locale is a String return it, otherwise return null.
 int UIDefaults.getInt(Object key, Locale l)
          If the value of key for the given Locale is an Integer return its integer value, otherwise return 0.
 boolean UIDefaults.getBoolean(Object key, Locale l)
          If the value of key for the given Locale is boolean, return the boolean value, otherwise return false.
 Insets UIDefaults.getInsets(Object key, Locale l)
          If the value of key for the given Locale is an Insets return it, otherwise return null.
 Dimension UIDefaults.getDimension(Object key, Locale l)
          If the value of key for the given Locale is a Dimension return it, otherwise return null.
 void UIDefaults.setDefaultLocale(Locale l)
          Sets the default locale.
static Font UIManager.getFont(Object key, Locale l)
          Returns a drawing font from the defaults table that is appropriate for the given locale.
static Color UIManager.getColor(Object key, Locale l)
          Returns a drawing color from the defaults table that is appropriate for the given locale.
static Icon UIManager.getIcon(Object key, Locale l)
          Returns an Icon from the defaults table that is appropriate for the given locale.
static Border UIManager.getBorder(Object key, Locale l)
          Returns a border from the defaults table that is appropriate for the given locale.
static String UIManager.getString(Object key, Locale l)
          Returns a string from the defaults table that is appropriate for the given locale.
static int UIManager.getInt(Object key, Locale l)
          Returns an integer from the defaults table that is appropriate for the given locale.
static boolean UIManager.getBoolean(Object key, Locale l)
          Returns a boolean from the defaults table which is associated with the key value and the given Locale.
static Insets UIManager.getInsets(Object key, Locale l)
          Returns an Insets object from the defaults table that is appropriate for the given locale.
static Dimension UIManager.getDimension(Object key, Locale l)
          Returns a dimension from the defaults table that is appropriate for the given locale.
static Object UIManager.get(Object key, Locale l)
          Returns an object from the defaults table that is appropriate for the given locale.
static void JComponent.setDefaultLocale(Locale l)
          Sets the default locale used to initialize each JComponent's locale property upon creation.
 

Uses of Locale in javax.swing.table
 

Methods in javax.swing.table that return Locale
 Locale JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getLocale()
           
 

Uses of Locale in org.xml.sax
 

Methods in org.xml.sax with parameters of type Locale
 void Parser.setLocale(Locale locale)
          Deprecated. Allow an application to request a locale for errors and warnings.
 

Uses of Locale in org.xml.sax.helpers
 

Methods in org.xml.sax.helpers with parameters of type Locale
 void XMLReaderAdapter.setLocale(Locale locale)
          Set the locale for error reporting.
 


JavaTM 2 Platform
Std. Ed. v1.4.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.