IOExceptions
This is really really annoying. I'm designing a GUI interface for my program, and when I click a button I have an action listener for that button.
When the action listener fires, it calls an object method, that creates another object, that reads files. Consequently all my methods require me to throw the IOException but I can't seem to throw it in my action listener? Any help/ suggestions?
privateclass ProcessButtonListenerimplements ActionListener
{
publicvoid actionPerformed(ActionEvent e)
{
options.process();
}
}
keep in mind this code generates an error when I compile telling me that an unreported IOException should be caught or thrown. When i tack "throws IOException" onto the end of the method, it give me another compiler error I can't figure out.
actionPerformed(java.awt.event.ActionEvent) in guipod.ProcessButtonListener cannot implement actionPerformed(java.awt.event.ActionEvent) in java.awt.ActionListener; overridden method does notthrow java.io.IOException

