Daria Malaguti
October 10th, 2000, 09:40 AM
Does anyone know whitch is the popup trigger event on Linux platform? The right mouse click returns false. Thank you very much, Daria
|
Click to See Complete Forum and Search --> : isPopupTrigger()? Daria Malaguti October 10th, 2000, 09:40 AM Does anyone know whitch is the popup trigger event on Linux platform? The right mouse click returns false. Thank you very much, Daria Daria Malaguti October 11th, 2000, 02:54 AM Forget it, I have already found the solution: the popUpTrigger is the MOUSE_PRESSED event of the right button of the mouse. Ciao, Daria chandaranachetan February 19th, 2001, 08:39 AM hi following is a sample code for showing pop up on right click public void mousePressed(MouseEvent me) { int Key = me.getModifiers(); if (Key == me.META_MASK){ debug("showing popup"); popup.setLocation(me.getX(),me.getY()); popup.show(jScrollPane1,me.getX(),me.getY()); popup.setVisible(true); } } regards Chetan C codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved. |