// paint method is used for drawing operations
public class HackDefence extends java.applet.Applet {
public void paint ( java.awt.Graphics ab ) {
ab.drawString ("HACK DEFENCE", 25, 75 ); // draw a string
ab.drawRect ( 0, 0, 299, 199 ); //draw a rectangle over the edge
}
}
(my facebook link: https://www.facebook.com/dipankar.choudhury1)
OUTPUT:
public class HackDefence extends java.applet.Applet {
public void paint ( java.awt.Graphics ab ) {
ab.drawString ("HACK DEFENCE", 25, 75 ); // draw a string
ab.drawRect ( 0, 0, 299, 199 ); //draw a rectangle over the edge
}
}
(my facebook link: https://www.facebook.com/dipankar.choudhury1)
OUTPUT:
No comments:
Post a Comment