コード例 #1
0
  /**
   * The aggregate components which compise the combo box are unregistered and uninitialized. This
   * method is called as part of the UI uninstallation process.
   */
  protected void uninstallComponents() {
    iconLabel = null;
    errorMessage = null;
    closeButton = null;
    reportButton = null;

    detailButton.removeActionListener(detailListener);
    detailButton = null;

    details.setTransferHandler(null);
    details = null;

    detailsScrollPane.removeAll();
    detailsScrollPane = null;

    detailsPanel.setLayout(null);
    detailsPanel.removeAll();
    detailsPanel = null;

    copyToClipboardButton.removeActionListener(copyToClipboardListener);
    copyToClipboardButton = null;

    pane.removeAll();
    pane.setLayout(null);
    pane.setBorder(null);
  }