Change JDialog to JOptionPane