JOptionPane InputDialog and MessageDialog