Java Programming - how to know current panel
I have created three tabs, each tab has a jpanel and each jpanel has various components like textfield, checkbox and radiobutton, where user inputs data.
These tabs are finally added to a top panel and to jframe. this frame also has a save button.
tabbedPane =new JTabbedPane();
tabbedPane.addTab("Network", networkPanel );
tabbedPane.addTab("Process", processPanel );
tabbedPane.addTab("Misc", miscPanel );
topPanel.add( tabbedPane, BorderLayout.CENTER );
The save button is common to all tabs. I may navigate through all these panels. Now my question is how do i know in which panel i am in. Is there any method that returns current panel.

