Let's say i have two forms such as a.java and b.java. There is a button inside a.java that creates a b object,hides itself and opens b.java. What i want is to show a.java again after i close b.java. Could anyone give me a simple example about this situation?
EDIT:
Let me give an example about my situation. I have a chart like this:

When i click one of the values, a new pieChart pops up, gives detailed information about the value. I can look any numbers of values with opening new JFrames. So, i think JTabbedPane can't solve my problem.