java.lang.IllegalArgumentException: wrong parent for CardLayout

Coderanch | Fran Costigan | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Exception in thread "main"

    Coderanch | 1 decade ago | Fran Costigan
    java.lang.IllegalArgumentException: wrong parent for CardLayout

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      wrong parent for CardLayout

      at java.awt.CardLayout.checkLayout()
    2. Java RT
      CardLayout.first
      1. java.awt.CardLayout.checkLayout(Unknown Source)
      2. java.awt.CardLayout.first(Unknown Source)
      2 frames
    3. Unknown
      Cineplex.main
      1. Cineplex.<init>(Cineplex.java:170)
      2. Cineplex.main(Cineplex.java:177)
      2 frames