| gatos_2004 2004-07-04, 6:25 pm |
| HI there guys:
I have a simple question. I have a code that gives a
compilation error, and I really appreciate if someone
help me on this one..It seems that the compiler is
asking me for a throws IOException, but I don't know
how to fit it without generating another error
thanks...write me at martinez_galban@yahoo.com
Code Description: This method generates an event after
typing in a textBox. THe throws IOException wouldn't
fit right after the method...KeyEvent evt){ , because
all the blue color is protected by the IDE.
Where and How can I place the throws IOException without messing
up the rest of the code???
Again thanks
-----------------------------------------------------
private void jTextField10KeyTyped
java.awt.event.KeyEvent evt) {
// TODO add your handling code here:
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String sethourRate = br.readLine();
double hourrate = Double.parseDouble(sethourRate);
JOptionPane.showMessageDialog(null, hourrate +
"is the hour rate entered","Example Output (Int)",
JOptionPane.INFORMATION_MESSAGE); |