Computer Science for Transfers
Lab 7 - An Introduction to Swing
Overview
The purpose of this lab is to give you some experience building simple
graphical user interfaces (GUIs) using Swing. This lab will focus
on constructing GUIs and using layout managers to arrange the components
contained within the GUI.
Pre-lab
- Review your class notes on Java Swing.
- Read through the Java tutorial trail on
Laying Out Components Within a Container.
Objectives
- To learn some of the basic concepts used in Java Swing
- Gain experience in building simple GUIs
- Learn how to use basic Swing components
- See how layout managers can be used to arrange components within
containers
- Learn how to prototype simple GUI applications
Activities
- Construct a data input screen.
- Build an electronic scramble pad.
- Use some basic Java dialogs.
Grading
| In-lab participation |
3 points |
| Activity 1 |
7 points |
| Activity 2 |
10 points |
| Activity 3 |
10 points |
| Total |
30 points |
Last modified July 24, 2003 by tmh.