简体   繁体   English

如何在Java模式对话框之外拦截鼠标事件,

[英]How can I intercept mouse events outside a Java modal dialog,

I have a modal dialog in Java and want to know when the user clicks outside the dialog (on another window in the application) instead of just having it go "blong" and flash the border. 我在Java中有一个模式对话框,想知道用户何时在对话框外(在应用程序的另一个窗口中)单击,而不是只是将其变宽并闪烁边框。 For such things as picking a color etc etc. 对于诸如选择颜色等的事物

使对话框成为非模式对话框,您仍然可以与应用程序的其余部分进行交互。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何对Java小程序中的Mouse事件做出反应,然后相应地绘制? - How can I react on Mouse events in a Java applet and then paint accordingly? 如何解决Java鼠标和键盘事件之间的冲突? - How can I resolve conflict between java mouse and keyboard events? 如何截获FlightRecording事件(java)? - How to intercept FlightRecording events ( java )? java-在组件外部获取鼠标事件 - java - get mouse events outside of a component 如何使 Java 打印对话框保持在顶部或非模态? (Linux) - How can I make a Java print dialog stay on top or non-modal? (Linux) 如何拦截Java或Android中对库类的方法调用? - How can I intercept a method call to a library class in Java or Android? 如何捕获JFrame / Swing中的所有鼠标事件? - How can I capture all mouse events in a JFrame/Swing? 如何将半透明JWindow上的鼠标事件传递到下面的JFrame? - How can I pass mouse events on a translucent JWindow to the JFrame underneath? 如何拦截JTA事务事件并获取对与事务关联的当前EntityManager的引用 - How can I intercept JTA transactions events and get a reference to the current EntityManager associated with the transaction 如何检测鼠标移出Java Popup? - How to detect mouse moving outside Java Popup?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM