code: private void cmdAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmdAddActionPerformed
      	// Open a save dialog if it is a new query
  		JDialog saveDialog = new JDialog();
  		saveDialog.setTitle("New Query");
  		saveDialog.setModalityType(ModalityType.MODELESS);
  		
  		SaveQueryPanel savePanel = new SaveQueryPanel("", saveDialog, queryController);
  		saveDialog.getContentPane().add(savePanel, java.awt.BorderLayout.CENTER);
  		saveDialog.pack();
  		
  		DialogUtils.centerDialogWRTParent(this, saveDialog);
  		DialogUtils.installEscapeCloseOperation(saveDialog);
  		
  		saveDialog.setVisible(true);
      }
docs: GEN-LAST:event_reselectQueryNode