CSci 2101 Data Structures: Lab 10 (optional): Java applets

Picture applets

Here are some examples of simple applets:

Some helpful APIs:

Problem 1: draw an applet with some shapes and your name on it.

Swing applets and events

Java class Swing allows you to create applets which have interactive elements similar to HTML forms: text areas, buttons, selection menus, etc. Interaction with the user is handled by Event Handlers: objects associated with specific components (such as a button) whose methods are called when an event happens.

Here is a couple of very simple examples and relevant pointers.

This is a lab from CSci 2101 course.

The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.