[ Contact ] [ Links ] [ Previous : 24 / 35 : Terminology : Compiled ] [ Up ] [ Next : 26 / 35 : The View Branch again ]

Building Applications and Applets

Applications require a main method:

public static void main( String[] args ) 

Applets require a public constructor:

public classname( )

To make an application work as an applet too, write the main method to use MainFrame

public static void main( String[] args )	{
   new MainFrame( new HelloUniverse( ), 640, 480 );
}







See the "Links" link above to find out the sources of the proposed informations
Pascal Vuylsteker / eScience / Computer Science / ANU
Last modified: 20/4/2004
TOC - Print
Send your comments at :
<Hugh.Fisher@anu.edu.au>