473,506 Members | 17,100 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

generating a mouse event by a java program

hi pals,

I like to know ,how to generate a mouse event through the java program
..
the user should not need to trigger the mouse event.the program should
control the mouse to generate a mouse event.

plz give me a solution........
Jul 17 '05 #1
3 4508
ga**********@yahoo.co.in (Ganesh) wrote in
news:54**************************@posting.google.c om:
hi pals,

I like to know ,how to generate a mouse event through the java program
.
the user should not need to trigger the mouse event.the program should
control the mouse to generate a mouse event.

plz give me a solution........


See java.awt.Robot
--
Ian Shef
These are my personal opinions and not those of my employer.
Jul 17 '05 #2
To receive mouse actions, you should probably first implement the
MouseListener and MouseMotionListener interfaces, and have all of the
required methods. If you want to get specifics, then go to the following
site:

http://java.sun.com/j2se/1.4.2/docs/api/index.html

This is probably the single most useful Java library glossary on the web.
Jul 17 '05 #3
On Fri, 13 Aug 2004 15:29:26 -0400, Hari wrote:
http://java.sun.com/j2se/1.4.2/docs/api/index.html


Of for the 'low bandwidth' entry point you might try ..
<http://java.sun.com/j2se/1.4.2/docs/api/overview-summary.html>

HTH

BTW ..To the poster, please do not cross-post
<http://www.physci.org/codes/javafaq.jsp#xpost>
comp.lang.java in an invalid group, F'Ups set to c.l.j.gui.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6200
by: John Champaign | last post by:
Hi all, I'm working on an educational applet for a child with special needs. He's got a bit of a trick to make my life more difficult... To interact with the applet he needs to click on...
3
3591
by: mitsura | last post by:
Hi, I have included a small listing. The test program opens a panel and show a bitmap. What I want is to when the mouse is over the bitmap panel, I want to trap the left mouse click. The...
3
9969
by: Logan Mckinley | last post by:
I need to be able to detect mouse movement even when it is not over my application. I can get the mouse cords using MousePosition but I am not sure if there is an event that hits my program when...
2
3346
by: Anders Eriksson | last post by:
Hello! I have a program with three views ------------------------------------ | | | | 1 | 2 | | | ...
4
2558
by: Prateek | last post by:
Hi All, I have created an ASP.NET page that basically consists of a table having text boxes in all cells. The table is created using client side java script. There are some calculations being...
4
8815
by: Henry Wu | last post by:
Hi, I see examples of Magnifying an area under mouse coordinates to a form or picturebox using VB6 and VC6, does anyone know how to do it under VB.NET? Its nice to use the new GDI+ for it. ...
1
7061
by: RC | last post by:
I know some JavaScript mouse events are: onClick, onMouseOver, onMouseOut, onMouseDown and onMouseUp. Are there more like: onMousePress, onMouseDrag, onMouseMove In Java there are:
1
1520
by: joder2006 | last post by:
I'm writing a RPG with 2-D graphics in java and for right now i have it where you can move the character using the arrows keys and the mouse and a few other things, when i click the mouse somewhere...
0
7220
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7479
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5617
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5037
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
410
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.