public void findbuttonActionPerformed (ActionEvent event) throws IOException { try { value1 = Double.parseDouble (Test1_Text.getText ()); value2 = Double.parseDouble (Test2_Text.getText ()); value3 = Double.parseDouble (Test3_Text.getText ()); value4 = Double.parseDouble (Exam_Text.getText ()); } catch (NumberFormatException e) { JOptionPane.showMessageDialog (null, "Please Enter Right Value!!!"); value1 = Double.parseDouble (Test1_Text.getText ()); value2 = Double.parseDouble (Test2_Text.getText ()); value3 = Double.parseDouble (Test3_Text.getText ()); value4 = Double.parseDouble (Exam_Text.getText ()); } }
I thought maybe it was the NumberFormatException but apparently not.
Thanks in advance.
Soorena
Edited by SOORENA, 22 May 2007 - 07:08 PM.