Fixing JOptionPange inputs for new JRE.