Sun Java Solaris Communities My SDN Account Join SDN
 
Tutorials & Code Camps

Effective Layout Management: Magercise 1: Building an Input Form

 
Training Index

[Help | API Docs | Short Course | Magercises]

In this Magercise, you will implement a technique described in the course notes for building label/text field pairs.

Magercise 1 Prerequisites

None.

Skeleton Code

InputForm.java

Tasks:

  1. Create a Panel managed by BorderLayout. Add a Label "Name:" to the west region and a TextField to the center region.

  2. Set the layout of the applet to BorderLayout. Add the Panel you just created to the north region of the applet container.

Where help exists, the task numbers above are linked to the step-by-step help page.

Solution Source

InputForm.java

Demonstration

Magercise 2

Short Course

About This Short Course

Copyright © 1998-1999 MageLang Institute. All Rights Reserved.