Hi i have implemente invoke later method in below way but still after i click on the next button i am not able to get response from the Close button. Please point out hte mistake in my code, Or please tell me if the behaviour i am expecting is wrong.
public void actionPerformed(ActionEvent e) {
//Some log messgae
if (e.getSource() == btnNext) {
SwingUtilities.invokeLater(new Runnable(){
public void run(){
/// some piece of code for some database transaction
}
});
}
i Expect here that if i click on btnNExt still i should be able to close the application in between when it doing its database transaction. which is not happening?
am i expecting something wrong here or there is some issue with by code.