Patch: Moving AWT files and lightweight dispatching

Bryce McKinlay bryce@albatross.co.nz
Sun Oct 29 14:24:00 GMT 2000


"Rolf W. Rasmussen" wrote:

> This patch contains the changes suggested by Bryce: moving files away
> from gnu/gcj/awt, and moving the lightweight dispatching mechanism
> inside the java.awt package.

Thanks Rolf. I was intending to get on to that over the weekend, but I got
distracted onto the collections stuff.

Do we need the "G" in "GLightweightPeer"? It might create confusion with Gtk
etc.

Why intantiate the dispatcher in Toolkit? Note that it is private, and can't
be manipulated by toolkit subclasses. I think we should put
LightweightDispatcher in Container.java, to emphasise that only Container
should ever use it.

> One LightweightDispatcher instance is created for each toolkit. Since
> getToolkit() can be costly in deep component trees, a reference to the
> LightweightDispatcher instance is cached in the field dispatcher in
> Container.

Oh, I see. I have to admit that I'm rather dubious about the
multiple-toolkits-at-the-same-time idea. It seems like one of those cool
sounding but not really so useful features to me.

regards

  [ bryce ]




More information about the Java-patches mailing list