public DGetPassword(JFrame parent,String title){
  super(parent,title,ModalityType.DOCUMENT_MODAL);
  initComponents();
}

public DGetPassword ( JFrame parent , String title ) { super ( parent , title , ModalityType . DOCUMENT_MODAL ) ; initComponents ( ) ; }
creates new dgetpassword dialog where the parent is a frame .
