A
Asanka
Hi All,
I am developing a Java application with Swing and Oracle. On the way I
want to throw an exception from the actionPerformed() method of an
ActionListener.
But I can't do that because it doesn't implement it in the
ActionListener interfacre. Is there any way to do that.
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){
doPopulate();
}
};
But I want to throw it some way without catching..
Could you please advice me how to throw that exception (without
catching)..
Many Thanks ...
Asanka Francis...
I am developing a Java application with Swing and Oracle. On the way I
want to throw an exception from the actionPerformed() method of an
ActionListener.
But I can't do that because it doesn't implement it in the
ActionListener interfacre. Is there any way to do that.
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){
doPopulate();
}
};
But I want to throw it some way without catching..
Could you please advice me how to throw that exception (without
catching)..
Many Thanks ...
Asanka Francis...