代码鼠标单击JPANEL中的特定坐标 [英] code to mouse click a particular cordinate in JPANEL

查看:75
本文介绍了代码鼠标单击JPANEL中的特定坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我!!!在创建一个JAVA代码....它将在一个面板中单击(鼠标)一个特定的坐标,自动在特定的时间自己...即。没有使用帮助...

解决方案

你不能自动点击任何东西:点击是硬件上的操作(鼠标或任何其他功能如下的设备)鼠标),别无其他。



显然你需要不同的东西。最有可能的是,您只需要一些与鼠标物理点击完全相同的方法。如果是这样,你应该这样做。写一些功能。添加鼠标单击的处理程序。在此处理程序中,您需要做的就是调用此函数。完成此操作后,调用此函数将产生与点击相同的效果。



就这么简单。



-SA


help me Please !!! in creating a JAVA code....which would click(mouse) a particular co-ordinate in a panel, AUTOMATICALLY at a particular time on it own...ie. without the help of use...

解决方案

You cannot click anything "automatically": the click is the operation on a hardware (mouse or any other device functioning like a mouse), and nothing else.

Apparently you need something different. Most likely, you just need some method with exact same effect as the physical click on mouse. If this is so, you should do exactly this. Write some function. Add a handler of the mouse click. In this handler, all you need to do is to call this function. After this is done, the call of this function will have the same effect as the click.

As simple as that.

—SA


这篇关于代码鼠标单击JPANEL中的特定坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆