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