Javatpoint Logo
Javatpoint Logo

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

Next TopicPainting-in-applet




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA