Asanka schrieb:
> Hi All,
>
[quoted text clipped - 4 lines]
> But I can't do that because it doesn't implement it in the
> ActionListener interfacre. Is there any way to do that.
No.
> Say doPopulate populates a table and essentially it wants to throw or
> catch SQLException. So I can't call it like this way.
>
> ActionListener act = new ActionListener(){
> public void actionPerformed(ActionEvent ae){
try {
> doPopulate();
} catch ( SQLException se ) {
ExceptionHandler.getInstance().handleException( se );
}
> }
> };
Where ExceptionHandler is an appropriate class.
Bye
Michael
> Hi All,
>
[quoted text clipped - 18 lines]
> Could you please advice me how to throw that exception (without
> catching)..
You can't. You have to catch it and handle it.
What do you think the EDT would do with the exception if you actually managed to
get the ActionListener to throw it? How do you think your GUI would behave from
then on?

Signature
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
Asanka - 10 Oct 2006 16:48 GMT
> > Hi All,
> >
[quoted text clipped - 30 lines]
> E-mail : nmw@ion.le.ac.uk
> Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
Hi Nigel,
Actually I wanted to handle it from somewhere else..
But with your reply I got to know that there then there is a
mishappening in the GUI.
Now I think about it again,,
Many Thanks ..
Asanka.