public DErrorDetail(JFrame parent,Dialog.ModalityType modality,Throwable error){
  super(parent,modality);
  this.error=error;
  initComponents();
}

public DErrorDetail ( JFrame parent , Dialog . ModalityType modality , Throwable error ) { super ( parent , modality ) ; this . error = error ; initComponents ( ) ; }
creates new derrordetail dialog where the parent is a frame .
