This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Applets and the fly likes setting status in browser's status bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "setting status in browser Watch "setting status in browser New topic
Author

setting status in browser's status bar

thushar kumar
Greenhorn

Joined: May 14, 2007
Posts: 9
Hi,

I manage an applet based UI. The principal file in the .jar served to the browser is say, abcApplet.java. abcApplet.java is located in a directory named applet.Once i've logged in to the applet, i see the following message in my browser status bar (lower left side)

Applet applet/abcApplet started

I want to get rid of the above status message as it is an eyesore, though technically error free.

It is difficult to rename the file and change the directory. If that were feasible, I could have had the status display

Applet abc started

I'd like to know if i can use JSObjects or something else to change the status message once i've logged in to the applet. I'd even be happy to not have any status displayed, as a workaround.

Hoping to hear from the gang on this.

thanks,
Thushar
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41591
    
  55
That's what AppletContext.showStatus does. This is something that can be prohibited by browser settings (over which the applet and web app have no control), so don't rely on people seeing whatever you display in the status bar.


Ping & DNS - my free Android networking tools app
thushar kumar
Greenhorn

Joined: May 14, 2007
Posts: 9
I agree to that. I'm not looking for a fool proof solution here. If i can just change the status from the applet for once, that would do the trick. In the use scenario for my UI, i don't see any user meddling with browser settings. So if i can have the default behaviour to be to my liking, i'm through.

thanks,
Thushar
thushar kumar
Greenhorn

Joined: May 14, 2007
Posts: 9
so to add to that, is there a method like AppletContext.setStatus that i can use?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41591
    
  55
The Applet class has a method for obtaining the AppletContext object; it's probably called getAppletContext.
 
Consider Paul's rocket mass heater.
 
subject: setting status in browser's status bar