A component's horizontal position within a row is determined partly by when
it was added to the container and is affected by the alignment value used
by the FlowLayout. In the screenshot above, the components are
left aligned, but below you can see the displays that are generated when
the components are right aligned and center aligned:
As you can see, the alignment value is used to determine how to distribute
extra space that's available when a row's components do not occupy the
entire width of the container.
Resizing Behavior
Reducing the width of a container managed by a FlowLayout
causes the rows to shrink in size, which may cause some components to be
moved to a new or different row. If the width of the frame is reduced
further, then portions of the wider components begin to disappear, as shown
below:
Similarly, if the frame's vertical size is reduced so that there's not
enough vertical space to display all rows, some of the components will
become partially or completely inaccessible:
Increasing the width of a FlowLayout-managed container may
allow more components to appear on a single row than were placed there
previously.
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.