Exception in thread "main" java.lang.NullPointerException at java.awt.Container.addImpl(Container.java:1039)
1. Don't use a lot of color. It makes your post hard to read. You tried to make the whole thing dark red. Fortunately, you didn't use the tags right, so it didn't work.
2. Put only one statement on a line. This is bad:
3. Don't name variables the same as methods. Calling add(add) is confusing. Variable names should be nouns (things) or at least noun-ish. Method names should be verbs (actions).
If the line 29 it's complaining about matches the line 29 in the code you posted, then it's the one I mentioned in my point #2 above. Since the error is occurring inside Container.add(), and not on line 29 directly, we know that c is not null. So either resultt (also a confusing name) must be null or the "add" variable must be null. Possibly both.
You will also find that you get much more help here if you actually ask a question. Simply posting 45 lines of code and an error you got turns a lot of folks off. It looks like you don't feel it important enough to spend the time to formulate a real question, so many folks will not find it important enough to compose a reply.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors