i want to read an object contents from a file in actionPerformed method. However it shows error related to IOException and ClassNotfoundEx ception . i cant throw these exceptions in actionPerformed method. So what shoild i do?
reading object
Collapse
X
-
Your question is a bit vague - could you show us, where the Exceptions are thrown?
Of course, if you just don't know how to handle Exceptions, you may want to read my article about them, especially Chapter 2: How to handle Exceptions and Chapter 5: An Example of how to use Exceptions could prove useful to you.
The solution to your problem would probably be to catch those exceptions and then give some other feedback.
Greetings,
NepomukComment
Comment