This content has been marked as final. Show 2 replies
Check the instance of jTabbedPane1 to be sure that's the same object you referenced in adding and closing.
Just add to System.out the jTabbedPane1 and see the result.
For what it's worth, I usually use add(String title, Component component) when adding tabs to a JTabbedPane.