Chapter 3 Examples
-
- Border Layout
- BorderLayoutExample.java
demonstrates how to use a BorderLayout.
-
- Flow Layout
- FlowLayoutExample.java
demonstrates how to use a FlowLayout.
-
- Grid Layout
- GridLayoutExample.java
demonstrates how to use a GridLayout.
-
- ViewPort Layout
- VPortLayoutExample.java
demonstrates how to use a ViewPortLayout. The
images images/shapes.gif
and images/logo.gif
are used in this example.
-
- No Layout Manager
- NoLayout.java
demonstrates how to build a user interface
without a layout manager.
-
- Combining Layout Managers
- CombinedExample.java
demonstrates how to combine layout managers to
create a complex user interface. Images from the
directory images
are used for the tool bar.
-
- Boxes
- HBoxExample.java
demonstrates how to use a horizontally oriented
box. VBoxExample.java
demonstrates how to use a vertically oriented
box. Both examples use struts and glue to define
the interface.
-
- Borders Example
- BorderExample.java
creates an interface with each of the available
Swing border types. Images from the directory images are used.
-
- Bevel Border Example
- SBorderExample.java
displays both bevel and soft bevel borders.
-
- Etched Border Example
- EBorderExample.java
displays a raised and lowered etched border.
-
- Titled Border Example
- TBorderExample.java
displays several titled borders, demonstrating
the various title positions.
-
- Custom Border Example
- TriBorder.java
implements a custom border that displays
triangles around a component. CBorderExample.java
demonstrates what a TriBorder looks like with
various attributes.
|