i'm writing a program that can tell me where my curser is and whether the bottons are being pressed
alastair1008
11
Newbie Poster
Recommended Answers
Jump to PostAnd?
Jump to PostYou need to implement MouseListener to see if the mouse button has been pressed, and you need to implement MouseMotionListener to keep track of where the mouse cursor is on the screen.
All 7 Replies
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
alastair1008
11
Newbie Poster
kramerd
29
Posting Pro in Training
alastair1008
11
Newbie Poster
kramerd
29
Posting Pro in Training
alastair1008
11
Newbie Poster
kramerd
29
Posting Pro in Training
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.