Exception in thread awt-eventqueue-0 java.lang.illegalargument:adding a window to a container

Bem, é o seguinte, estou desenvolvendo uma aplicação em Java para Desktop, basicamente, é um software que a partir de um Jframe principal chama os outros Jframes. E assim que nós rodamos o programa, a seguinte mensagem de erro aparece:

Exception in thread “AWT-EventQueue-0” java.lang.IllegalArgumentException: adding a window to a container
at java.awt.Container.checkNotAWindow(Container.java:490)
at java.awt.Container.addImpl(Container.java:1091)
at javax.swing.JLayeredPane.addImpl(JLayeredPane.java:231)
at javax.swing.JDesktopPane.addImpl(JDesktopPane.java:484)
at java.awt.Container.add(Container.java:417)
at view.ViewPrincipal.(ViewPrincipal.java:28)
at view.ViewPrincipal$7.run(ViewPrincipal.java:278)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Lendo um pouco pela internet vi que tem algo haver com o JFrame principal chamar os outros JFrames, já outras fontes indicavam que o problema no programa poderia ser o fato de algumas janelas estarem em CardLayout e uma, que seria o JFrame principal, não estar. O problema está mesmo complicado. Enfim, se alguém tiver alguma sugestão, opinião, solução, estou disposto a tentar.

Você está tentando adicionar uma janela em um painél, isso não pode ser feito.
Pelo StackTrace, o erro está na linha 28 do arquivo ViewPrincipal.java.