You can try a Java Web Start version of the FormatWordbencb. This will load a Java program onto your machine, but it has security permisssions to read or write your files, or do anything else dangerous. It will remain cached on your machine so that you can run it offline if you wish. Every time you run it a check will be made to see if there are updates, so it is always current. FormatWorkbench
GridBagLayout makes it possible to build nice looking and behaving layouts,
but it's insanely difficult and error prone to work with,
even with convenience functions that most people write.
// Create components first.
JTextField fnField = new JTextField(15);
JTextField lnField = new JTextField(15);
...
FormatPanel content = new FormatPanel(
"'First Name' $x / 'Last Name' $"
, new Component[] {fnField, lnField});
The format codes fall into the following groups.
Explicit movement (/ , \)
/ - Start next row., - Skip current column.\ - Start next column.rn - Specifies row n. It's usually better to use relative specification.cn - Specifies col n. It's usually better to use relative specification.Component specification. ($ '...' F - |) Followed by optional constraints. By default
inserts components in next free position in the current row.
$ - Inserts next component from parameter list. May be followed by constraints.'label' - Creates and inserts a JLabel. May be followed by constraints._ - Creates and inserts a horizontal JSeparator. May be followed by constraints.| - Creates and inserts a vertical JSeparator. May be followed by constraints.w h N S E W x y)Constraint codes must follow a component specification.
wn - Width of component space in content columns (ie, ignore gaps).hn - Height of component space in content rows (ignore gaps in counting rows).N S E W - Where in the component space the component should
be aligned. By default, components are expanded to all edges of their space.
You may specify a single edge (N S E W), or any combination of two edges.
x - Component space may expand horizontally (x-axis) when container is stretched.y - Component space may expand vertically (y-axis) when constainer is stretched.Gaps are specified by a direction (N S E W), followed by an
optional size in pixels, and an optional x or y expansion.
B)G)