Creating GUI in Java
Creating graphical applets in Java is somewhat more difficult than it would
be in a visual language like Visual Basic or Dephi (although visual versions
of java are available).
All of the following components are found within the javax.swing package which
must be imported:
import javax.swing.*;
In Java the programmer has to position visual objects manually. There are three
layouts that can be used:
- Border layout -- In border layout the
components are organized in a circular pattern around the outside of the frame
with a single frame in the center.
- Flow layout -- In flow layout the components
will move based on the frame size to fit in the best possible way.
- Grid layout -- In grid layout the components
are placed in a predefined grid pattern.
- Complex Layout -- With a complex layout
you can place a layout within the frame of another layout.

©2003 C. Whittington