![]() So, this becomes more of a lower-level (most likely C/C++) question rather than a Java question. However, according to the Windows Documentation, setting the cursor is based on a specific event, so we'd need control which events get passed through. Now, the definition of the tOpacity states this is platform-dependent behavior, but it's specifically about how MouseEvents are handled, not how the mouse cursor is handled. Inspired from this answer, you can make a fully transparent window that passes events through to the windows behind them. However, it's also important to touch on a method I thought would work, but doesn't appear to work on my system, being a 64-bit Windows 10 Pro. This is largely operating system dependent, but I would like to think that, for security reasons, setting the global cursor is blocked on most, if not all, secure operating systems. For a direct (as best as I can) answer to the question asked, no, you can not set the global cursor using Java. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |