// program code
package try;
import java.awt.*;
import java.applet.*;
public class work2 extends Applet
{
public void paint(Graphics g)
{
try
{
g.setColor(Color.gray);
g.fillRect(210,200,340,210);
g.setColor(Color.blue);
g.fillRect(210,200,340,25);
g.setColor(Color.white);
g.fillRect(240,350,280,25);
g.setColor(Color.black);
g.drawString("The program is being loaded..... ",235,315);
g.setColor(Color.white);
g.drawString("Java Project ",218,215);
for(int i=242;i<520;i=i+14)
{
g.setColor(Color.green);
g.fillRect(i,350,12,25);
Thread.sleep(1000);
}
}catch(Exception e)
{}
}
}