java.lang.IllegalArgumentException: adding container's parent to itself

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 807587, 1 year ago
adding container's parent to itself
via Oracle Community by 807587, 1 year ago
via Oracle Community by 807546, 1 year ago
via Oracle Community by 807601, 1 week ago
adding a window to a container
via hivmr.com by Unknown author, 1 year ago
via Oracle Community by 843805, 9 months ago
java.lang.IllegalArgumentException: adding container's parent to itself
at java.awt.Container.addImpl(Unknown Source)
at javax.swing.CellRendererPane.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)
at javax.swing.plaf.basic.BasicListUI.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.ScrollPaneLayout.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.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at java.awt.Window.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at undefined.ListRendererExample.(ListRendererExample.java:40)
at undefined.ListRendererExample.main(ListRendererExample.java:56)

Users with the same issue

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

Write tip

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