for(int i = 0; i < detailPanel.getTabCount(); i++) { Component comp = detailPanel.getComponentAt(i); if(comp instanceof JFloatable) { ((JFloatable)comp).setAutoClose(true); } }
  public void stop() {    if(tips != null) {      tips.setVisible(false);      tips = null;    }    frameLocation = frame.getLocationOnScreen();    frameSize     = frame.getSize();    alive = false;    slTracker.close();    dispTracker.close();    pkgTracker.close();    Activator.getTargetBC().removeBundleListener(this);    if(consoleSwing != null) {      consoleSwing.stop();      consoleSwing = null;    }    if(frame != null) {      frame.setVisible(false);      frame = null;    }  }