Hi All,
I have a JButton and i am associating actionPerformed for that as shown.
public void actionPerformed(ActionEvent disableEvent){
if(disableEvent.getSource()==execute){ //where execute is a JButton
execute.setEnabled(false);
P=Runtime.getRuntime().exec("cmd /c start temp_execute.bat ");
}
In the above snippet when i click on execute Process is running i.e. the .bat file but i end up seeing no functionality on JButton.
Is it the problem with .bat since it is Windows Thread,so it has got high priority and because of which it is skipping
execute.setEnabled(false);
Any help appreciated.
Thanks in advance.
regards,
Viswanadh