![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
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 OK dialog has returned. Hide and dispose of the dialog box right before adding the label.
Skeleton Code
Tasks
Create an applet with an
Create
In the applet's
Where help exists, the task numbers above are linked to the step-by-step help page. Solution Source
Demonstration
This exercise only runs within browsers that support the Java Runtime Environment 1.1 and
A dialog box should appear outside of the browser. If this does not occur, your browser does not handle dialog boxes properly.
Next ExerciseExercisesShort CourseCopyright 1996-2000 jGuru.com. All Rights Reserved. |