The UBC Java graphics tutorial—a still picture

We shall begin by looking at a very simple applet which displays a square in the middle of a canvas. First a few words on some very practical matters and the basic mechanism of Java. Java is the nameof a computer language, and also thename of a virtual machine which interprets this language. A copy of the virtual machine sits inside the browser on which someone will see your program run.

Your program, in a form readable by the Java virtual machine, is loaded over the Internet. The steps in making this program are these:
create the program in one or more Java source files, which must have the extension .java; compile these files into class files which contain instructions in the machine language of the Java virtual machine, and in particular to build a main class file which I shall call the applet file; make an .html file which your browser reads, and which runs your applet file.

Get pdf download The UBC Java graphics tutorial—a still picture

Related Tutorial

Tags: , , , , , , , ,

Comments

Leave a Reply