Technical Support
Discussion Forum
Online Training
Read About Java
Java In-Depth
Product Discounts
Membership Information

Java Cup Logo

JDC Home Page


Working Applet
Help and Hints
Source Code
Table of Contents
Online Training
shadowSearchFAQFeedback

LabelTest

Prerequisites

  • None.
In this exercise, you will write an applet that creates and displays a few Label components.

Perform the following tasks:

  1. Create an applet called LabelTest and set the layout manager to GridLayout(3,1).
  2. Create and add three Label objects with labels "Left label," "Right label," and "Center label," aligned to the left, right, and center respectively.
The task numbers above are linked to the step-by-step help page. Also available is a complete solution that meets these requirements.

Related Exercises