Esempio n. 1
0
 /**
  * Returns the name of the currently displaying JComponent.
  *
  * @return The name of the currently displaying JComponent.
  */
 String getComponentName() {
   return mainPanel.getComponent(0).getName();
 }
Esempio n. 2
0
 /**
  * Returns the currently displaying JComponent.
  *
  * @return The currently displaying JComponent.
  */
 JComponent getJComponent() {
   return (JComponent) mainPanel.getComponent(0);
 }