java.awt.AWTError: BoxLayout can't be shared

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807553, 1 year ago
BoxLayout can't be shared
via Oracle Community by 807582, 1 year ago
via Oracle Community by 807555, 1 year ago
BoxLayout can't be shared
via Oracle Community by 807569, 1 year ago
via Oracle Community by 843806, 3 months ago
BoxLayout can't be shared
via java-forums.org by Unknown author, 1 year ago
BoxLayout can't be shared
java.awt.AWTError: BoxLayout can't be shared
at javax.swing.BoxLayout.checkContainer(BoxLayout.java:408)
at javax.swing.BoxLayout.invalidateLayout(BoxLayout.java:195)
at java.awt.Container.invalidate(Container.java:851)
at java.awt.Component.addNotify(Component.java:5398)
at java.awt.Container.addNotify(Container.java:1852)
at javax.swing.JComponent.addNotify(JComponent.java:4270)
at java.awt.Container.addNotify(Container.java:1859)
at javax.swing.JComponent.addNotify(JComponent.java:4270)
at java.awt.Container.addNotify(Container.java:1859)
at javax.swing.JComponent.addNotify(JComponent.java:4270)
at java.awt.Container.addNotify(Container.java:1859)
at javax.swing.JComponent.addNotify(JComponent.java:4270)
at java.awt.Container.addNotify(Container.java:1859)
at javax.swing.JComponent.addNotify(JComponent.java:4270)
at java.awt.Container.addNotify(Container.java:1859)
at javax.swing.JComponent.addNotify(JComponent.java:4270)
at java.awt.Container.addNotify(Container.java:1859)
at javax.swing.JComponent.addNotify(JComponent.java:4270)
at java.awt.Container.addNotify(Container.java:1859)
at javax.swing.JComponent.addNotify(JComponent.java:4270)
at javax.swing.JRootPane.addNotify(JRootPane.java:658)
at java.awt.Container.addNotify(Container.java:1859)
at java.awt.Window.addNotify(Window.java:395)
at java.awt.Frame.addNotify(Frame.java:479)
at java.awt.Window.pack(Window.java:413)
at undefined.CDBTest.main(CDBTest.java:246)

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.