Fixed temporary input from JOptionPane