|
[Help | Solution | API Docs | Short Course | Magercises]
In this magercise, you will explore the
The skeleton code preloads the Magercise 7 Prerequisites Buttons With Icons Skeleton Code BLayout.java Resources Tasks
JPanel with a
LayoutManager of BoxLayout)
using the Box class.
Create and add two
Create a horizontal box using the
Create and add three Add the two boxes to the frame. The vertical box goes in the west quadrant, while the horizontal one goes in the center.
Save everything and compile the program. Then run it to see the
results. When you resize the screen, you'll notice how the button
positions aren't fixed, but more of a relative position.
As a precaution, the Save command appends a "1"
to the end of the filename you want to save. This can help
prevent you from accidently overwriting your source code.
Where help exists, the task numbers above are linked to the step-by-step help page. The following Java source file represents a solution to this Magercise. Copyright © 1998-1999 MageLang Institute. All Rights Reserved. | ||||
|
| ||||||||||||