RiverLayout


Version: 1.1
Size:
12KB
Requirements:
Java Runtime Environment
Seller:
David Ekholm
Price:
Free
System:
Windows XP/2000/98
Rating:
4.4
License:
LGPL

Description - RiverLayout



Java is great but but designing user Interfaces can be a headache, especially forms. Layout managers like FlowLayout and BorderLayout are easy to understand, but rather limited, and how often do you want components to wrap to the next row if a window is narrowed? (as is the case with FlowLayout). GridBagLayout is flexible all right, but apart from being overly Complex and requiring one to write essays, one cannot easily modify the layout, say add a component in the Middle, without having to adjust cell coordinates for other components. I wanted a flexible layout manager that anyone can understand intuitively. Why not mimic how text is positioned in a text editor? In an editor words flow from left to right. They are normally separated with spaces, but if you want them aligned in columns you can use tab STOPS. You can insert line breaks where needed and even paragraph breaks to separate sections of text. This is how RiverLayout works. Without further talking, look at the example below. It displays a simple form with a centered header and OK Button. Two of the fields expand automatically to fill the available space and finally, the labels and fields are nicely aligned in two columns.

RiverLayout


More in Java & JavaScript-RiverLayout

Columns Fields Separated With Spaces