Fixed JDialog instead of system.out