AWT is dead now

Bryce McKinlay bryce@albatross.co.nz
Mon Mar 20 22:23:00 GMT 2000


Per Bothner wrote:

> I think the "model" classes should be pure Java (except perhaps
> a few CNI methods for speed).  However, the "view" classes
> should perhaps be based on gtk widgets.  At least the default
> implementation of the view classes should use the gtk theme
> framework.

Why not do the view classes in Java as well? Implementing Swing's level
of elegance and complexity (even just the views) in C is not something
I'd consider either "fun" or "realistic". Given the elimination of the
synchronization issues, and good garbage collection, the Java
implementation would be allmost as fast. "view" classes written in Java
could even be used by traditional programs written in C(++) as if they
were native gtk widgets, given a bit of glue.

> One exciting idea I want to explore is to use the XSL
> "formatting object" model for views.  See http://www.w3.org/TR/xsl/
> We could base the implementation on FOP ( http://xml.apache.org/fop/ ),
> which is an open-source implementation in Java sponsored by the Apache
> XML Project.

Yes, this sounds very cool.

regards

  [ bryce ]




More information about the Java mailing list