Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: wrong parent for CardLayout
at java.awt.CardLayout.checkLayout(CardLayout.java:38 4)
at java.awt.CardLayout.show(CardLayout.java:506)
at tictactoe.TicTacToe.setCurrentPanel(TicTacToe.java :79)
at tictactoe.TheActualMenu$Handler$3.mouseClicked(The ActualMenu.java:96)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEvent Multicaster.java:253)
at java.awt.Component.processMouseEvent(Component.jav a:6300)
at javax.swing.JComponent.processMouseEvent(JComponen t.java:3275)
at java.awt.Component.processEvent(Component.java:606 2)
at java.awt.Container.processEvent(Container.java:203 9)
at java.awt.Component.dispatchEventImpl(Component.jav a:4660)
at java.awt.Container.dispatchEventImpl(Container.jav a:2097)
at java.awt.Component.dispatchEvent(Component.java:44 88)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4575)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4245)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4166)
at java.awt.Container.dispatchEventImpl(Container.jav a:2083)
at java.awt.Window.dispatchEventImpl(Window.java:2489 )
at java.awt.Component.dispatchEvent(Component.java:44 88)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:674)
at java.awt.EventQueue.access$400(EventQueue.java:81)
at java.awt.EventQueue$2.run(EventQueue.java:633)
at java.awt.EventQueue$2.run(EventQueue.java:631)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:647)
at java.awt.EventQueue$3.run(EventQueue.java:645)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 644)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:122)