Bug 788 - Add Better ability to control AWT focus when using NewtCanvasAWT
Summary: Add Better ability to control AWT focus when using NewtCanvasAWT
Status: CONFIRMED
Alias: None
Product: Jogl
Classification: JogAmp
Component: awt (show other bugs)
Version: 2
Hardware: All all
: --- enhancement
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2013-07-17 07:02 CEST by Enzio
Modified: 2013-08-03 19:07 CEST (History)
0 users

See Also:
Type: ---
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enzio 2013-07-17 07:02:31 CEST
The following is the use case for this enhancement :

I have the canvas rendered in front of a JDesktopPane on which I have swing components rendered. So, the canvas completely obscures the swing components.  I paint the swing components to buffered images and render the images as textures on the canvas in order to allow 3D transformations on the images. Any mouse and keyboard events which occur can then be translated and dispatched to the swing component to allow interaction with it. This seems to work fine, but I am running into a problem with drag and drop operations (this may also occur with other operations, but drag and drop is the one of which I am aware). The problem is that as the drag begins the NewtCanvasAWT gains the focus so the dragged component loses focus. When the translated MOUSE_DRAGGED event is delivered, the component regains focus, but the drag action will already be terminated.

Focus works as expected with GLCanvas, the focus change only occurs with NEWT.