hi Utkarsh,
I tried that too, just copy the code & try on ur machine its not working
like that.Inspite of the paint() method being called its still not
displaying in the status bar. pls do try
import java.applet.*;
import java.awt.*;
public class f1 extends Applet
{
public void init()
{
showStatus("applet status...............");
repaint();
}
public void start()
{
showStatus("applet status...............");
repaint();
}
public void paint(Graphics g)
{
showStatus("applet status...............");
}
}
- ravi
Just minimize the window once. Only after that the repaint() method
works.
Luv,
Utkarsh.
Utkarsh Mohta.
226,Cathedral Road
CTS, Chennai -86.
e-mail : [EMAIL PROTECTED]
: [EMAIL PROTECTED]
Phone : 44-8270063 Ext. 2367.
-----Original Message-----
From: Ravi [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, December 14, 1999 2:32 PM
To: [EMAIL PROTECTED]
Subject: [javacertification] Applets ???
hi ,
i changed the code but still it is not displaying in the status bar
pls explain
import java.applet.*;
import java.awt.*;
public class f1 extends Applet
{
public void init()
{
showStatus("applet status...............");
repaint();
}
public void start()
{
showStatus("applet status...............");
repaint();
}
public void paint(Graphics g)
{
showStatus("applet status...............");
}
}
Look at the applet carefully when it is loaded. The status comes only
for a fraction i.e. when the applet is loaded. If u want it there then
define paint method and use repaint in the init method.
I hope this clears your doubt.
Luv,
Utkarsh.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html