Saturday, 26 May 2012

Applet Example to draw horizontal line


import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class MyApplet extends Applet
{
public void init()
{

System.out.println("init method has started: ");

}
public void start()
{

System.out.println("start method has started: ");

}
public void paint(Graphics g)
{

System.out.println("paint method has started: ");
g.drawLine(50,50,100,50);

}
public void destroy()
{

System.out.println("destroy method has started: ");

}





}

2 comments:


  1. I have read your blog its very attractive and impressive. I like it your blog.

    Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

    Java Online Training Java Training in Chennai Core Java 8 Training in Chennai Core Java 8 Training in Chennai JavaEE Training in Chennai Java EE Training in Chennai

    ReplyDelete
  2. I have read your blog its very attractive and impressive. I like it your blog.

    Java Online Training Java EE Online Training Java EE Online Training Java 8 online training Core Java 8 online training

    Java Online Training from India Java Online Training from India Core Java Training Online Core Java Training Online Java Training InstitutesJava Training Institutes

    ReplyDelete