listener22
Programmer
Hello -
I have a small app with 2 classes - one applet and one application.
The applet gets order information from the user, instantiates the
other class, passes some parameters to it, and then calls that other
object's methods to calculate the order cost. In an attempt to keep
the application class flexible, its default parameters are stored in
a file, rather than coded in as constants.
In order to read the file, "throws IOException" is included in the
set parameters method in the application class (there is no main method).
The application class compiles without error.
The applet class compile fails with a complaint that the
IOException is not caught or rethrown. However, the call to the
application object's set parameters method occurs in the applet's
init() method, and I haven't been able to successly place an IOException
phrase there.
Thanks in advance. Jim
oracle, vb
I have a small app with 2 classes - one applet and one application.
The applet gets order information from the user, instantiates the
other class, passes some parameters to it, and then calls that other
object's methods to calculate the order cost. In an attempt to keep
the application class flexible, its default parameters are stored in
a file, rather than coded in as constants.
In order to read the file, "throws IOException" is included in the
set parameters method in the application class (there is no main method).
The application class compiles without error.
The applet class compile fails with a complaint that the
IOException is not caught or rethrown. However, the call to the
application object's set parameters method occurs in the applet's
init() method, and I haven't been able to successly place an IOException
phrase there.
Thanks in advance. Jim
oracle, vb