Can’t move mouse cursor from within AWT Canvas in Swing Window

Home Forum Troubleshooting GUI Can’t move mouse cursor from within AWT Canvas in Swing Window

This topic contains 2 replies, has 2 voices, and was last updated by  drhml 3 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19428

    drhml
    0p
    Participant

    Hello all,
    I have Swing window with (not only) AWT Canvas, which is used for JME3 scene rendering.
    Everything is ok unless I move mouse cursor at the Canvas area. Then it can normally interact with scene, but it’s impossible to move it away from Canvas.
    Is there any simple solution, which I haven’t noticed yet?

    PS: If it helps, I use SimpleApplication for now.

    Thanks

    #131135
    +1

    Normen Hansen
    2797p
    Keymaster

    inputManager.setCursorVisible(true);

    #131136

    drhml
    0p
    Participant

    Many thanks,
    It’s incredible, how fast this reply was. And more, it works :)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.