开发者

Mouse events on JPanel

开发者 https://www.devze.com 2023-01-02 04:16 出处:网络
i have mouselisteners on multiple jpanels. I need to detect if the mouse is pressed when it enters on开发者_JAVA百科 a different jpanel than the one the event has started from. how can i do that?Eithe

i have mouselisteners on multiple jpanels. I need to detect if the mouse is pressed when it enters on开发者_JAVA百科 a different jpanel than the one the event has started from. how can i do that?


Either listen on a JPanel that includes the others or see if using Drag and Drop might suit your needs better.

0

精彩评论

暂无评论...
验证码 换一张
取 消