For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > July 2004 > Need Help With a Compilation Error??????









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Need Help With a Compilation Error??????
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);
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com