Move/resize handling
Hamish Morrison
hamish at lavabit.com
Fri May 25 04:50:53 PDT 2012
Hi,
I'm using Caciocavallo to port AWT to the Haiku operating system as part
of my Summer of Code project this year.
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?
Thanks,
Hamish
More information about the caciocavallo-dev
mailing list