title: How to move the mouse in JDK 10? .mousePress(InputEvent.BUTTON1_MASK); doesn't work anymore
body: <p>I was trying to position the mouse and simulate a click with <code>Robot</code> but it seems like that is no longer supported in JDK 10. It looks like <a href="https://ibb.co/cYwdLT" rel="nofollow noreferrer">this</a> and says <code>The field InputEvent.BUTTON1_MASK is deprecated since version 9</code>.</p>
  
  <p>Does anybody know a way to fix this or how to simulate a click in another way?</p>