i'm having the same issue as the person [here][1], in that i need to track a frame location while it is being dragged on OS X. The question had not been resolved there, so:
how do i tell a frame that a mouse down event happened on its (OS-native) title bar or, more generally, that a mouse down event happened somewhere on the screen?
[1]: https://stackoverflow.com/questions/757078/events-for-window-dragging-in-java
以上就是java - get mouse events outside of a component的详细内容,更多请关注web前端其它相关文章!