![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Exercise OutlineWelcome to the jGuru exercises for the AWT Fundamentals short course. These exercises show how to use the Abstract Window Toolkit components to interact with forms and windows. These exercises demonstrate how to use the Abstract Window Toolkit (AWT) components and events within your Java technology applications. The exercises include stand-alone programs as well as applets that let you learn how to create and interact with AWT components within your programs. When you finish these exercises, you will know the basic steps for designing and developing AWT-based Java programs for client-side computing. About ExercisesA jGuru exercise is a flexible exercise that provides varying levels of help according to the student's needs. Some students may complete the exercise using only the information and the task list in the exercise 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 an exercise and still be able to complete later exercises that required the skipped one(s). The Anatomy of an ExerciseEach exercise includes a list of any prerequisite exercises, a list of skeleton code for you to start with, links to necessary API pages, and a text description of the exercise's educational goal. In addition, buttons link you to the following information:
Exercise Design GoalsThere are three fundamental exercise types that you may encounter:
To make learning easier, exercises, where possible, address only the specific technique being taught in that exercise. Irrelevant, unrelated, and overly complex materials are avoided. Where possible, exercises execute on the Web. However, exercises that must access Java features or library elements that could cause security violations are not executed on the web. AWT Fundamentals ExercisesExercises
Create a simple GUI by adding components to an applet. Educational goal(s):
Create a simple applet to allow users to select a student and a course from a
Educational goal(s):
Create an applet that beeps each time the user clicks a mouse button. Educational goal(s):
Create an applet that counts and displays the number of times a button has been pressed. Educational goal(s):
Create an applet that counts and displays the total number of key presses. Educational goal(s):
Create an applet that displays items in a list and responds to item selections. Educational goal(s):
Create a phonebook look-up applet that displays the phone number for the person selected and looks up the name for an entered phone number. Educational goal(s):
Create an applet with two radio buttons that allow the user to choose between two opinions of the Java programming language. Educational goal(s):
This exercise produces an application rather than an applet. This application demonstrates GUI design within the primary application window. Educational goal(s):
Create an applet so that it appears within a Educational goal(s):
Create and open a dialog box that waits for the user to hit the "OK" button before it disappears and the applet finishes. Have the applet add the label "Back from dialog..." to its display when the dialog box has returned. Hide and dispose of the dialog box right before adding the label. Educational goal(s):
Create an application that instantiates and shows a Educational goal(s):
Given an application (or applet) that constructs a Educational goal(s):
Copyright 1996-2000 jGuru.com. All Rights Reserved. |