You aren't even doing what I said to do. You asked how to add a JTabbedPane to a Tab on a JTabbedPane. All your code does is instantiate 2 JTabbedPanes(), one of which is never used, and then you put a panel on one of the Tabs.
This is the solution to your original question. Is this not what you want?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com