J
Jon
Hiya
I have written java app which embeds a (Windows) C++ using JNI. The C++ code
uses a heavyweight Canvas object to display itself (basically it creates its
window using the Canvas's hWnd as a parent).
The application works absolutely fine, but I've run into an issue with cursors.
The C++ app defines its own cursor which is displayed when the mouse is over
its part of the display. However, when the java app updates its status bar (a
JLabel) using setText(), the cursor will immediately change to the java app's
default - even if the mouse pointer is still over the C++ display. Moving the
cursor a few pixels restores the C++ app's cursor.
This seems like broken behaviour to me - is there any way to stop it from
happening? Making the java and C++ cursors the same would be a workaround, but
it's not idea for this application.
Thanks,
Jon
I have written java app which embeds a (Windows) C++ using JNI. The C++ code
uses a heavyweight Canvas object to display itself (basically it creates its
window using the Canvas's hWnd as a parent).
The application works absolutely fine, but I've run into an issue with cursors.
The C++ app defines its own cursor which is displayed when the mouse is over
its part of the display. However, when the java app updates its status bar (a
JLabel) using setText(), the cursor will immediately change to the java app's
default - even if the mouse pointer is still over the C++ display. Moving the
cursor a few pixels restores the C++ app's cursor.
This seems like broken behaviour to me - is there any way to stop it from
happening? Making the java and C++ cursors the same would be a workaround, but
it's not idea for this application.
Thanks,
Jon