#

| Chapter 18 The java.awt Package |

## 18.31 java.awt.IllegalComponentStateException (JDK 1.1)

###

This exception signals that an AWT component is not in the appropriate state (for example, it hasn't been added to a container yet or is currently hidden) for some requested operation.

    public class IllegalComponentStateException extends IllegalStateException {
        // Public Constructors
                public IllegalComponentStateException();
                public IllegalComponentStateException(String s);
    }

### Hierarchy:

`Object->Throwable(Serializable)->Exception->RuntimeException-> IllegalStateException->IllegalComponentStateException`

java.awt.GridLayout (JDK 1.0) |  | java.awt.Image (JDK 1.0)