[2346] in java-interest
New (pre-beta) layout manager available
daemon@ATHENA.MIT.EDU (dufourd@enst.enst.fr)
Fri Sep 29 16:53:18 1995
From: dufourd@enst.enst.fr
To: java-interest@java.sun.com
Date: Fri, 29 Sep 95 19:46:18 +0100
As said above, there is a new layout manager. It does something
like what we had in the Embedded Applets package. You can place
components relatively to each other with offsets :
- it does not seem to exercise the layout bugs found in layout
managers using the name of the component as a location data.
- all relative positions I could think of are supported.
- it is easy to add more.
- the layout has a fixed size declared on creation.
- all components should implement a specific interface.
- there is as much doc as a true Java API class.
- it works for me.
I wrote this because :
- I needed it in a hurry.
- I would like to know if this is the best way to do such extensions.
If so, it seems a bit unwieldy : either the layout manager stuff is
designed in a not-too-extensible way, or there is something missing in
Java to make up for this, or I am not a real Java-ite yet.
If someone extends it, please make the v2 available.
It can be found at :
http://www-elec.enst.fr/java/mos-beta/RelativeLayout.java
http://www-elec.enst.fr/java/mos-beta/RelativePlacement.java
An example of use is:
http://www-elec.enst.fr/java/mos-beta/test.html
JCD
------------------------------------------Java, Lisp & Theater----------------
Jean-Claude Dufourd Departement Electronique,ENST Tel: +33 1 45 81 78 07
46 rue Barrault, 75013 Paris Fax: +33 1 45 80 40 36
Email: dufourd@elec.enst.fr URL: http://www-elec.enst.fr/~dufourd/jcd.html
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com