I have a JComponent with both a MouseListener and a MouseMotionListener added. I can output the mouse position over that component, until I click and hold, MousePressed is called, but not MouseMoved. What's happened to my MouseEvent? How can I fix this?
ANSWERS: 1
Sort by: Highest Rated
-
MouseMoved becomes MouseDragged when a mouse button is clicked and held. You'll need to allow your position display code to be called from both event handling functions. -
No comments
RELATED QUESTIONS
RELATED TOPICS
ABOUT ANSWERBAG
Answerbag wants to provide a service to people looking for answers and a good conversation. Ask away and we will do our best to answer or find someone who can.We try to vet our answers to get you the most acurate answers.
Copyright 2023, Wired Ivy, LLC

by