#

| Chapter 19 java.awt Reference |

# IllegalComponentStateException

## Name

IllegalComponentStateException

##

## Description

An `Exception` indicating that a `Component` was not in an appropriate state to perform a requested action.

## Class Definition

    public class java.awt.IllegalComponentStateException
        extends java.lang.IllegalStateException {

      // Constructors
      public IllegalComponentStateException();
      public IllegalComponentStateException (String s);
    }

## Constructors

### IllegalComponentStateException

#### public IllegalComponentStateException()

Description

  Constructs the exception object with no detail message.

#### public IllegalComponentStateException (String s)

Parameters

  s

    Detail message

Description

  Constructs the exception object with the given detail message.

## See Also

`Exception`, `String`

GridLayout |  | Image