public DProblem(JFrame parent,String title,Problem problem){
  super(parent,ModalityType.DOCUMENT_MODAL);
  setTitle(title);
  this.problem=problem;
  initComponents();
}

public DProblem ( JFrame parent , String title , Problem problem ) { super ( parent , ModalityType . DOCUMENT_MODAL ) ; setTitle ( title ) ; this . problem = problem ; initComponents ( ) ; }
creates new dproblem dialog where the parent is a frame .
