Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

throwing exception in actionPerformed(event e)

 
Hung Tang
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a BookFlight button, when I click on it, it will invoke the actionPerformed method. This method does not throw any exceptions. But in this method, I have to invoke the criteriaFind method which throws exceptions! how do I get around this?
 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Hung:
Is there any problem to use try and catch block in your actionPerformed method? Use criteriaFind
method inside try block. I think you would be able to handle exception whatever it is inside catch block.
-Bal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic