I have a java swing GUI in which at has to perform specific actions on double and single click.
I have this code

```
 if (e.getClickCount() == 1)
    {
    // do something on single click
    }
    if (e.getClickCount() == 2)
    {
    // do something on double click
    }

```

its working correctly. problem is that this code behaves same for right and left mouse click. i do not want to perform any action on double right click. only want to show a popup menu on single right click.

Any body please guide me. thanks