title: Catch WM_SETCURSOR in Swing
body: <p>I need to do the next cpp code in my Swing application:</p>
  <pre><code>const HCURSOR customCursor = (HCURSOR)LoadImage(NULL, &quot;filepath/some.cur&quot;, IMAGE_CURSOR, 0, 0, LR_LOADFROMFILE);
  SetCursor(customCursor);
  </code></pre>
  <p>I supposed that I can do it via JNA. But I couldn't do that, and I guess that Swing overrides my changes.
  And now I want to catch <code>WM_SETCURSOR</code> from Swing and then do <code>SetCursor</code> with JNA.</p>
  <p>So my answer is next:
  How can I catch/override <code>WM_SETCURSOR</code> in Swing application?</p>