How to display message in browser status bar in Java?

Below java code shows how to display message in browser status bar using applet in java –

* Created on 07-2011 Copyright(c) All Rights Reserved.

import java.applet.Applet;
import java.awt.*;

* Created by Vigilance India.
* User:
* Date: Jul 31, 2011
public class DisplayMessageApplet extends Applet {
private String message="";
public void init(){
message = getParameter("message");

public void paint(Graphics g) {

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<title>Parameterized Applet</title>
<applet code=""
height="150" width="350">
<param name="message" value="This is message displayed on Status bar" />