|
[Short Course | About This Short Course] These Magercises show how to use the Swing components of the Java platform to interact with Java forms and windows. When you finish these Magercises, you should be comfortable using the Swing component set where you would previously have used AWT components. Magercise Outline About Magercises A Magercise is a flexible exercise that provides varying levels of help according to the student's needs. Some students may complete the magercise using only the information and the task list in the Magercise body; some may want a few hints; (Help) while others may want a step-by-step guide to successful completion (Solution). Since complete solutions are provided in addition to help, students can skip a Magercise (or several) and still be able to complete later Magercises that required the skipped one(s). The Anatomy of a Magercise Each Magercise includes a list of any prerequisite Magercises, a list of skeleton code for you to start with, links to necessary API pages, and a text description of the Magercise's educational goal. In addition, buttons link you to the following information:
Magercise Design Goals There are three fundamental magercise types that you may encounter:
To make learning easier, Magercises, where possible, address only the specific technique being taught in that Magercise. Irrelevant, unrelated, and overly complex materials are avoided. Where possible, Magercises execute via the web. However, Magercises that must access Java features or library elements that could cause security violations are not executed on the web. Magercises, Swing: Part I 1. Installing Swing and SwingSet Demonstration Install Swing and demonstrate the SwingSet examples. Educational goal(s): See the different Swing components in action 2. Creating Your First JFC Application
Create a simple application with a Educational goal(s):
3. Creating Buttons With Icons Create image buttons with keyboard accelerators. Educational goal(s):
Create a program to demonstrate checkboxes and radio buttons. Educational goal(s):
Change the default border around a Educational goal(s):
6. Using Menus, Toolbars, and Tool Tips Setup the menus, toolbar, and toolbar tool tips for a simple text editor. Educational goal(s):
Create an application using the Educational goal(s):
Copyright © 1998-1999 MageLang Institute. All Rights Reserved. | ||||
|
| ||||||||||||