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

Oracle Community | 807587 | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Problem in JList rendering

    Oracle Community | 1 decade ago | 807587
    java.lang.IllegalArgumentException: adding container's parent to itself
  2. 0

    How to use more than one JPanel with Grouplayout

    Stack Overflow | 3 years ago | user2933563
    java.lang.IllegalArgumentException: GroupLayout can only be used with one Container at a time

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      adding container's parent to itself

      at java.awt.Container.addImpl()
    2. Java RT
      Component.setVisible
      1. java.awt.Container.addImpl(Unknown Source)
      2. javax.swing.CellRendererPane.addImpl(Unknown Source)
      3. java.awt.Container.add(Unknown Source)
      4. javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
      5. javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)
      6. javax.swing.plaf.basic.BasicListUI.getPreferredSize(Unknown Source)
      7. javax.swing.JComponent.getPreferredSize(Unknown Source)
      8. javax.swing.ScrollPaneLayout.layoutContainer(Unknown Source)
      9. java.awt.Container.layout(Unknown Source)
      10. java.awt.Container.doLayout(Unknown Source)
      11. java.awt.Container.validateTree(Unknown Source)
      12. java.awt.Container.validateTree(Unknown Source)
      13. java.awt.Container.validateTree(Unknown Source)
      14. java.awt.Container.validateTree(Unknown Source)
      15. java.awt.Container.validateTree(Unknown Source)
      16. java.awt.Container.validateTree(Unknown Source)
      17. java.awt.Container.validate(Unknown Source)
      18. java.awt.Window.show(Unknown Source)
      19. java.awt.Component.show(Unknown Source)
      20. java.awt.Component.setVisible(Unknown Source)
      20 frames
    3. Unknown
      ListRendererExample.main
      1. ListRendererExample.<init>(ListRendererExample.java:40)
      2. ListRendererExample.main(ListRendererExample.java:56)
      2 frames