[solved] JMEDesktopState - visibility problems

I tried the following code (copied from TestJMEDesktopState), and have two problems.

  • First, the cursor is not visible. I know there is an AbsoluteMouse class, but I saw in the TestJMEDesktop demo that you can also use the system cursor.
  • Second, the button appears just after I move the mouse over it. I tried out several things, but nothing seems to work. In the original TestJMEDesktopState there is another GameState, and then the button is immediately visible.

    Both things should be easy, but obviousely not for me…

public class JMEDesktopTest {