Welcome To The World Of Hacking


Learn Hacking|Teach Hacking|Learn To Secure|Learn To Code

Wednesday

JAVA PROGRAMMING TUTORIAL 48 : paint() METHOD

// 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:

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...