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

Coderanch | M Gerber | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Illegal argument exception: cannot add parent to itself

    Coderanch | 5 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 | 10 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

    Adding JScrollPane to a JPanel?

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

  1. poroszd 1 times, last 3 months ago
  2. rp 1 times, last 1 year 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