Applet init() method

Tell me is it possible to override the init ()method of an applet?And can you call the method when a user clicks on a button?thanx in advance.
[170 byte] By [macomy] at [2007-9-27 13:56:22]
# 1

> Tell me is it possible to override the init ()method

> of an applet?

> And can you call the method when a user clicks on a

> button?

> thanx in advance.

- nearly all applets are overriding the init() method. you should put all initialisation code here, because the init() method is called only once at startup and sould not be called manually.

- you have to "install" an ActionListener if you want to response to a buttonclick.

codymanix at 2007-7-5 21:45:34 > top of Java-index,Archived Forums,Java Programming...