java.lang.IllegalArgumentException: adding container's parent to itself The stack trace that caused the error is beneath. I prefer to start at the bottom, looking for references to my code in each line that starts with an 'at'. There will also be references to other code, usually core Java classes and methods, but they can be to any other code imported to make your code complete. Inverting your stack trace:

Coderanch | Greg Brannon | 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 | Greg Brannon
    java.lang.IllegalArgumentException: adding container's parent to itself The stack trace that caused the error is beneath. I prefer to start at the bottom, looking for references to my code in each line that starts with an 'at'. There will also be references to other code, usually core Java classes and methods, but they can be to any other code imported to make your code complete. Inverting your stack trace:

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      adding container's parent to itself The stack trace that caused the error is beneath. I prefer to start at the bottom, looking for references to my code in each line that starts with an 'at'. There will also be references to other code, usually core Java classes and methods, but they can be to any other code imported to make your code complete. Inverting your stack trace:

      at charitypledgeprogram.CharityPledgeProgramGUI.main()
    2. charitypledgeprogram
      CharityPledgeProgramGUI.main
      1. charitypledgeprogram.CharityPledgeProgramGUI.main(CharityPledgeProgramGUI.java:142)
      1 frame