Recommended solutions based on your search
Solutions on the web
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: