![]() |
Absolute layout
As was seen with the previous examples, many, if not most, GUIs can be laid out using the flexible layout managers. Occasionally, though, you may simply want to lay out your components in fixed positions and sizes. Although we do not recommend constructing user-interfaces in this manner, this Magercise nontheless asks you to lay out a number of components this way and introduces you to the tools needed to align them neatly on the screen. Note, that the tutorial that comes with VisualAge for Java goes into more details about how to use these tools.
Work LocationPerform all work for this magercise in VisualAge project MageLang Magercises, package magercises.xylayout. If this project does not appear in your Workspace add it from the repository (if it exists there) or create a new project using this name. Tasks
Perform the following tasks:
Make the components all the same width and height. Now left align the components. Finally, space them out vertically.
|
Copyright © 1996-1997 MageLang Institute. All Rights Reserved. |