Ejemplo 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();
 }
Ejemplo n.º 2
0
 /**
  * Returns the currently displaying JComponent.
  *
  * @return The currently displaying JComponent.
  */
 JComponent getJComponent() {
   return (JComponent) mainPanel.getComponent(0);
 }