This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Re: Patch: more AWT code
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)
regards
[ bryce ]