Move/resize handling

Roman Kennke roman at kennke.org
Thu May 31 05:02:09 PDT 2012


Hi Hamish,

> I'm using Caciocavallo to port AWT to the Haiku operating system as part
> of my Summer of Code project this year.

Wow! That sounds pretty cool!

> Handling resize/move events from the platform window seems to be
> missing, so the Swing component's size is not updated when the window is
> resized by the user. I've solved this by handling
> ComponentEvent.COMPONENT_MOVED/RESIZED in CacioComponentPeer's
> handlePeerEvent and having it set the bounds to the updated bounds of
> the AWT component. You can see the changeset here:
> 
> https://bitbucket.org/hamishm/haiku-jdk-jdk/changeset/2588da0259c9
> 
> Is this the correct way to go about solving this or is there some easy
> solution I'm missing?

This looks about right from quickly glancing over it.

I would like to incorporate this patch (ideally, you could write a
testcase for it, if not, I will probably do it when I find some time).
However, since Cacio is an OpenJDK project, it is required that you fill
out the OCA.

http://www.oracle.com/technetwork/oca-405177.pdf
http://www.oracle.com/technetwork/oca-faq-405384.pdf

What do you think?

Roman





More information about the caciocavallo-dev mailing list