java控制台mouselistener [英] java console mouselistener
本文介绍了java控制台mouselistener的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要创建一个鼠标记录器,我不能得到一个鼠标监听器与控制台一起工作,这是可能的, h2_lin>解决方案
除非你编写自己的控制台触发鼠标事件,我不认为你会能够做到。什么窗口小部件要注册你的mouselistener否则?控制台不是挥杆组件,因此,没有挥杆事件。
I am trying to make a mouse recorder, I cant seem to get a mouse listener to work with a console, is this possable and how would I go about it Thanks.
解决方案
Unless you wrote your own console that fired mouse events, I dont' think you're going to be able to do it. What widget are you going to register your mouselistener against otherwise? The console isn't a swing component, therefore, no swing events.
这篇关于java控制台mouselistener的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文