I have written an application that has a GUI that accepts a file name in a text area box. When the user clicks the submit button the application is suppose to read in the file name the user entered and return the length of the longest line. In this application I have a method that reads in the file and finds the length of the longest line which throws a IO exception. I want to call this method from my event handler but upon compilation I receive an error.---> action (java.awt.event,java.lang.object)in findlength can not override action (java.awt.event,java.lang.object)in java.awt.component; overriden method does not throw java.io.IOException
public boolean action(event evt, object arg)throws IOException
public boolean action(event evt, object arg)throws IOException