Exemplo n.º 1
0
 /**
  * Needed to avoid memory leak: we register this EmbeddedFrame as a listener with
  * KeyboardFocusManager of applet's AppContext. We don't want the KFM to keep reference to our
  * EmbeddedFrame forever if the Frame is no longer in use, so we add listeners in show() and
  * remove them in hide().
  */
 public void hide() {
   if (appletKFM != null) {
     removeTraversingOutListeners(appletKFM);
   }
   super.hide();
 }