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: ");

}





}

3 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. It is explained in clear way.It is very easy to understand the information.

    eTechno Soft Solutions is a leading training institute for all kind of the Oracle Training in Bangalore with real-time experienced trainers with 100% Placement Assistance.

    ReplyDelete