Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MouseListener

 
Trey German
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't get mousePressed(MouseEvent e) mouseClicked(MouseEvent e) and mouseReleased(MouseEvent e) to fire. Anyone got any tips?
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you add the Listener to the Component?
A little code would help here.
 
Trey German
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, thanks, thought of that myself
stupid!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic