Changed JDialog to JFrame