Calling on methods and fields in containing class
I want to add a 'close' button to a tab contained within a JTabbedPane and can't.
My situation is this: I have an overall GUI class, which deals with the overall program and always runs. This contains a JTabbedPane, which in turn contains a bunch of JPanels. Each JPanel is its own class and has its own code because they do funky stuff.
I want to add a 'close' button to the JPanels so that they can close themselves, but I can't call the removeTabAt() method in the JFrame class since the JTabbedPane isn't static (if I make it static it stops working). How on earth do I get these tabs to remove themselves?

