Can't use dialog box, changed it to a JFrame