|
|
|
Magercise 1 PrerequisitesFundamentals of Swing: Part I, Magercises Skeleton Code
Swing provides a nice "treeview" component,
Tasks:
tree package.
Next, create a set of Component Container Box JComponent AbstractButton JButton JMenuItem JToggleButton JLabel ... [literally "..."]
Use constructs such as:
Once you've created all the nodes, add them to each other to construct the
hierarchy.
Once you have the hierarchy setup, create a class that implements
Once you've defined a
Create a
The
Change the
Associate the
Then, create a Save everything and compile the program. Then run it to see the results.
Where help exists, the task numbers above are linked to the step-by-step help page. SolutionThe following Java source files represent a solution to this Magercise:Magercise 2Short CourseAbout This Short CourseCopyright © 1998-1999 MageLang Institute. All Rights Reserved. |
|
|||
|
|
Questions?
29-Mar-99 Copyright © 1996-1999 Sun Microsystems Inc. All Rights Reserved. Legal Terms. Privacy Policy. |
|