## Uses of Class
java.awt.IllegalComponentStateException

- Packages that use IllegalComponentStateException
  Package | Description
  --- | ---
  javax.accessibility | Defines a contract between user-interface components and an assistive technology that provides access to those components.
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.

- - ### Uses of IllegalComponentStateException in javax.accessibility

    Methods in javax.accessibility that throw IllegalComponentStateException
    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract Locale` | AccessibleContext.`getLocale()` Gets the locale of the component.

  - ### Uses of IllegalComponentStateException in javax.swing

    Methods in javax.swing that throw IllegalComponentStateException
    Modifier and Type | Method | Description
    --- | --- | ---
    `Locale` | ProgressMonitor.AccessibleProgressMonitor.`getLocale()` Gets the locale of the component.
    `Locale` | ImageIcon.AccessibleImageIcon.`getLocale()` Returns the locale of this object.

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.