EventHandling in Applet

As we perform event handling in AWT or Swing, we can perform it in applet also. Let's see the simple example of event handling in applet that prints a message by click on the button.

Example of EventHandling in applet:

In the above example, we have created all the controls in init() method because it is invoked only once.

myapplet.html

Next TopicJApplet




Contact US

Email:[email protected]

EventHandling in Applet
10/30