JApplet class in Applet

As we prefer Swing to AWT. Now we can use JApplet that can have all the controls of swing. The JApplet class extends the Applet class.

Example of EventHandling in JApplet:

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

myapplet.html





Latest Courses