Java Reference
In-Depth Information
DAY 11:
Arranging Components
on a User Interface
If designing a graphical user interface were comparable to painting, you
could currently produce only one kind of art: abstract expressionism. You
can put components onto an interface, but you don't have control over
where they go.
To arrange the components of a user interface in Java, you must use a
set of classes called layout managers .
Today, you learn how to use layout managers to arrange components into
an interface. You take advantage of the flexibility of Swing, which was
designed to be presentable on the many different platforms that support
the language.
You also learn how to put several different layout managers to work on
the same interface, an approach for the many times when one layout
manager doesn't suit everything you have in mind for a program.
 
Search WWH ::




Custom Search