ABSTRACT
AllappletsarebasedontheAppletclass,whichcontainsawhole batchofready-mademethods.Someofthesearerunautomaticallyin responsetosystemactivity.Thefirstexampleinthischapterlooks atthesekeymethods:
init()isrunwhentheappletisfirstloaded,andonlythen.Ifyou havevariablesthatneedtobegiveninitialvalues,thisis whereitshouldbedone.