<Swing Dev> [PATCH] DefaultDesktopPane fix

Roman Kennke roman.kennke at aicas.com
Thu Feb 26 13:46:01 UTC 2009


Hi there,

no opinions on that? Should I file a bugreport instead?

/Roman

Am Mittwoch, den 14.01.2009, 14:54 +0100 schrieb Roman Kennke:
> I found a problem in DefaultDesktopPane. Dragging in fast mode does not
> work correctly (at least not on all platforms) if the pane is obscured
> by another heavyweight. Graphics.copyArea() isn't guaranteed to work
> correctly in this case. I think we need to do like in JViewport and
> check if the heavyweight is guaranteed to be not obscured and only do
> the fast dragging if this is the case. I pulled the checking code from
> JViewport to SwingUtilities so they can share this thing.
> 
> I know this is a corner case, because in most cases, when dragging an
> internal frame, the user clicks on the frame and brings the window to
> the top anyway, so it should not be obscured, but there could be
> always-on-top dialogs or similar, which stay on top of the app, even
> when the user drags something.
> 
> The webrev is here:
> 
> http://kennke.org/~roman/desktoppane/webrev/
> 
> What do you think? Should this be included in OpenJDK?
> 
> /Roman
> 
-- 
Dipl.-Inform. (FH) Roman Kennke, Software Engineer, http://kennke.org
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-48
USt-Id: DE216375633, Handelsregister HRB 109481, AG Karlsruhe
Geschäftsführer: Dr. James J. Hunt




More information about the swing-dev mailing list