Patch: more AWT code

Bryce McKinlay
Wed Jan 3 15:01:00 GMT 2001

Tom Tromey wrote:

> Ideally the peer could use get[HV]Adjustable on the component to get
> the Adjustables.  But that won't work, I think, since then there is no
> way for the peer to update the values in the Adjustable.
> I guess we could do this work from C++ and thus violate the Java
> privacy rules.  We've done it before.  It is ugly though.  I imagine
> this is what I'll assume.

Or, the peer could implement the Adjustable objects itself, and provide
getHAdjustable/getVAdjustable methods that the component can use when it
needs to access them.

Or maybe its all just calculated internally by the component (this seems
pretty likely actually, and it means less work to do when we want to port
the peers to different toolkits)


  [ bryce ]

More information about the Java-patches mailing list