all i need is this, i can write this in almost every other language except this;
a loop to show me the constant mouse coordinates (x,y) of the mouse on the screen, much help would be appreciated if you could write a sample program its only 2 lines.

Recommended Answers

All 2 Replies

Member Avatar for coil

Have a look at the MouseMotionListener interface, specifically the mouseMoved method. Example

It updates automatically, so all you have to do is display it.

Also look at the MouseInfo class

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.