Hallo
Ich designe gerade eine GUI (habe das gröbste mithilfe von NetBeans gemacht) und habe das ganze nun nach Eclipse übertragen.
Wenn ich das Programm nun aber ausführe, bekomme ich immer folgenden Fehler (Mein Frame erscheint trotzdem, aber ohne Inhalt):
Der Code für die GUI:
[Java] wochenplanGUI - Pastebin.com
Ich hoffe Ihr könnt mir helfen...
Liebe Grüße
Ich designe gerade eine GUI (habe das gröbste mithilfe von NetBeans gemacht) und habe das ganze nun nach Eclipse übertragen.
Wenn ich das Programm nun aber ausführe, bekomme ich immer folgenden Fehler (Mein Frame erscheint trotzdem, aber ohne Inhalt):
Java:
Exception in thread "main" java.lang.IllegalStateException: javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=bis,verticalAlignment=CENTER,verticalTextPosition=CENTER] is not attached to a vertical group
at javax.swing.GroupLayout.checkComponents(Unknown Source)
at javax.swing.GroupLayout.prepare(Unknown Source)
at javax.swing.GroupLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedPreferredSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedMinimumSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateMinimumSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getMinimumSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout.calculateAutopadding(Unknown Source)
at javax.swing.GroupLayout.prepare(Unknown Source)
at javax.swing.GroupLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.JRootPane$RootLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at java.awt.Window.pack(Unknown Source)
at wochenplanGUI.mainGUI(wochenplanGUI.java:337)
at wochenplan.main(wochenplan.java:7)
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=bis,verticalAlignment=CENTER,verticalTextPosition=CENTER] is not attached to a vertical group
at javax.swing.GroupLayout.checkComponents(Unknown Source)
at javax.swing.GroupLayout.prepare(Unknown Source)
at javax.swing.GroupLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedPreferredSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedMinimumSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateMinimumSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getMinimumSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$SequentialGroup.setValidSize(Unknown Source)
at javax.swing.GroupLayout$Group.setSize(Unknown Source)
at javax.swing.GroupLayout.calculateAutopadding(Unknown Source)
at javax.swing.GroupLayout.layoutContainer(Unknown Source)
at java.awt.Container.layout(Unknown Source)
at java.awt.Container.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=bis,verticalAlignment=CENTER,verticalTextPosition=CENTER] is not attached to a vertical group
at javax.swing.GroupLayout.checkComponents(Unknown Source)
at javax.swing.GroupLayout.prepare(Unknown Source)
at javax.swing.GroupLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedPreferredSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedMinimumSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateMinimumSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getMinimumSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$SequentialGroup.setValidSize(Unknown Source)
at javax.swing.GroupLayout$Group.setSize(Unknown Source)
at javax.swing.GroupLayout.calculateAutopadding(Unknown Source)
at javax.swing.GroupLayout.layoutContainer(Unknown Source)
at java.awt.Container.layout(Unknown Source)
at java.awt.Container.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=bis,verticalAlignment=CENTER,verticalTextPosition=CENTER] is not attached to a vertical group
at javax.swing.GroupLayout.checkComponents(Unknown Source)
at javax.swing.GroupLayout.prepare(Unknown Source)
at javax.swing.GroupLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedPreferredSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedMinimumSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateMinimumSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getMinimumSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$SequentialGroup.setValidSize(Unknown Source)
at javax.swing.GroupLayout$Group.setSize(Unknown Source)
at javax.swing.GroupLayout.calculateAutopadding(Unknown Source)
at javax.swing.GroupLayout.layoutContainer(Unknown Source)
at java.awt.Container.layout(Unknown Source)
at java.awt.Container.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Der Code für die GUI:
[Java] wochenplanGUI - Pastebin.com
Ich hoffe Ihr könnt mir helfen...
Liebe Grüße