Hello!
Please help me with one thing.
I want to perform a series of actions and display the final result.
Something like
Performing first action.......... succeded
Performing second action.......... succeded
Performing third action.......... succeded
Performing fourth action.......... failed
Each of these actions lasts nearly 2-3 seconds.
When I click a button (that begins doing all that and that has been added an ActionListener to)
they all go through and the results display after the last action is completed.
I tried adding a MouseListener.
Something like this
String result=null;
public void mousePressed(MouseEvent me){
"Performing first action........";
result = DoMy2-3SecondslastingMethod();
}
public void mouseReleased(MouseEvent me){
DisplayResult(result); //succeded or failed
}
It works when I perform just one action.
But how can switch between them?
In a
word I need this
1. Display "Performing first action..........". Carry out the first action
2. Display the result of the first action then pass to the next.
I need to do all that by clicking a button once.
How can this be done?
Please help!
Thank you!