Re: Laying out a form in java
Flo 'Irian' Schaetz wrote:
"Andrew Thompson" <andrewthommo@gmail.com> schrieb
While GBL is powerful (I have seen things done
in GBL that I have never been able to reproduce
with other core layouts)
Do you have an example for one of that?
(grins) You're not just prepared to take my
word for it? No? Good!
OK.. here's two examples..
<http://www.physci.org/jnlp/PToE.jnlp>
A Periodic Table of the elements.
Just under a meg. to see on-screen, but you
can probably guess the basic layout from the
name, each element is a single JPanel, organised
by a GBL.
I cannot quite recall why it asks for 'full privileges' -
it is part of a jar with other mains that do require
full access, but with no I/O - the PToE should
not need it.
A second classic example, by Knute Johnson..
<http://groups.google.com/group/comp.lang.java.gui/msg/86ad1bc9ecc9fcdc>
Either of these might be made using a custom layout, but
I know of no (practical) combination of nested (core J2SE)
layouts that would satisfy the requirements of the
periodic table, or center that component with no 'stretch'.
Both of them pretty unusual requirements, admittedly.
The first almost unique, the second perhaps good for
centering media that should not be stretched.. or(?)
Andrew T.