The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
Please vote in the Forum Structure Poll. Polling will close at 2PM EST on January 21, 2025.

Java Mouse Listeners [FIXED]

DeswaDeswa Registered User regular
edited May 2007 in Help / Advice Forum
So I'm working on learning some Java(Swing) over the summer and hoping it will apply to next semester but I've hit a small snag. I'm understanding it but I cant seem to find a listener for separate clicks of the mouse, right and left. Is there a special method I'm suppose to use or does right and left clicks create a different event that I can break down to determine which it was?

gobassgo wrote:
"It ain't rape, it's surprise sex!"
wii : 3788 3264 2419 8070
Deswa on

Posts

  • Mr.FragBaitMr.FragBait Registered User regular
    edited May 2007
    Deswa wrote: »
    So I'm working on learning some Java(Swing) over the summer and hoping it will apply to next semester but I've hit a small snag. I'm understanding it but I cant seem to find a listener for separate clicks of the mouse, right and left. Is there a special method I'm suppose to use or does right and left clicks create a different event that I can break down to determine which it was?

    I'm hoping to learn some swing over the summer myself. I think this is what you need.

    java.awt.event.inputevent.getModifiersEx()

    Mr.FragBait on
  • DeswaDeswa Registered User regular
    edited May 2007
    Thank you, I have such a hard time looking for things on that site. My problem is solved.

    Deswa on
    gobassgo wrote:
    "It ain't rape, it's surprise sex!"
    wii : 3788 3264 2419 8070
This discussion has been closed.