Chapter 1 - Graphical Interface
1. Hello World Example
| /*
By Bavo Bruylandt (Http://www.realapplets.com") */ // and now The inevidable "Hello World" example :) // tell the compiler where to find the methods
you will use.
// the start of an applet - HelloWorld will be
the executable class
// The method that will be automatically called
when the applet is started
// This method gets called when the applet is
terminated
// The standard method that you have to use to
paint things on screen
public void paint(Graphics g)
} }
// That's it. Next is drawing special shapes on
screen and using fonts.
|