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

Coderanch | M Gerber | 4 years ago
  1. 0

    Illegal argument exception: cannot add parent to itself

    Coderanch | 4 years ago | M Gerber
    java.lang.IllegalArgumentException: adding container's parent to itself
  2. 0

    I'm having trouble setting up a jpanel and frame

    Stack Overflow | 3 years ago | user2980790
    java.lang.IllegalArgumentException: adding container's parent to itself
  3. 0

    what does this Java programming error mean?

    javaprogrammingforums.com | 6 months ago
    java.lang.IllegalArgumentException: adding container's parent to itself
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Why I obtain this error when I try to add the Container object to the main JFrame object using Swing?

    Stack Overflow | 3 years ago | AndreaNobili
    java.lang.IllegalArgumentException: adding container's parent to itself
  6. 0

    Adding JScrollPane to a JPanel?

    Stack Overflow | 4 years ago | Quinnette Ribeiro'college
    java.lang.IllegalArgumentException: adding container's parent to itself

  1. rp 1 times, last 11 months ago
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    adding container's parent to itself

    at java.awt.Container.checkAddToSelf()
  2. Java RT
    Container.add
    1. java.awt.Container.checkAddToSelf(Container.java:472)
    2. java.awt.Container.addImpl(Container.java:1083)
    3. java.awt.Container.add(Container.java:410)
    3 frames
  3. charitypledgeprogram
    CharityPledgeProgramGUI.main
    1. charitypledgeprogram.CharityPledgeProgramGUI.<init>(CharityPledgeProgramGUI.java:50)
    2. charitypledgeprogram.CharityPledgeProgramGUI.main(CharityPledgeProgramGUI.java:142)
    2 frames