code: private void formWindowOpened(java.awt.event.WindowEvent evt)//GEN-FIRST:event_formWindowOpened
    {//GEN-HEADEREND:event_formWindowOpened
  
      spDetails.setVisible(false);
      pack();
      validate();
  
    }
docs: GEN-LAST:event_btCloseActionPerformed