kohinoor2007
Programmer
Hi all,
Iam developing a client applet under java.My class extends from JApplet.
Have run into a problem in which the "showstatus" method is not displaying anything on the browser status bar.
My code is as follows:
private void loadInitialData(){
Runnable worker =new Runnable(){
public void run(){
waitUntilConnected();
try{
showStatus("STATUSMESSAGE");
//A Time consuming methid is called from here.TimeConsumingMethod();
showStatus("Ready");
}
catch(Exception error){
showError("Failed,error);
}
}
};
SwingUtilities.invokeLater(worker);
}
"loadInitialData" method is called from the "init" function of the applet. I have some restrictions,for which I have to use the runnable thread.
How can I make the "showstatus" work from within the thread....
Thanks in advance....
Iam developing a client applet under java.My class extends from JApplet.
Have run into a problem in which the "showstatus" method is not displaying anything on the browser status bar.
My code is as follows:
private void loadInitialData(){
Runnable worker =new Runnable(){
public void run(){
waitUntilConnected();
try{
showStatus("STATUSMESSAGE");
//A Time consuming methid is called from here.TimeConsumingMethod();
showStatus("Ready");
}
catch(Exception error){
showError("Failed,error);
}
}
};
SwingUtilities.invokeLater(worker);
}
"loadInitialData" method is called from the "init" function of the applet. I have some restrictions,for which I have to use the runnable thread.
How can I make the "showstatus" work from within the thread....
Thanks in advance....