This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Check out the method isPopupTrigger() in MouseEvent or getModifiers() and BUTTON3_MASK or BUTTON2_MASK in InputEvent. First Example: if(e.isPopupTrigger()) // Code to display a pop-up menu or what ever you want to do. // This is more platform independent. Second Example: if((e.getModifiers() & e.BUTTON3_MASK) != 0) // Code to display a pop-up menu or what ever you want to do. // This is more platform dependant. Hope this helps