public void mouseReleased(MouseEvent e) { int mods = e.getModifiersEx(); if (nodrag && e.getButton() == MouseEvent.BUTTON3) { popupMenu.show(JImage.this, (int) e.getPoint().getX(), (int) e.getPoint().getY()); } nodrag = true; dragBegin = null; }
public void mousePressed(MouseEvent e) { // #if (tar) // @ if (e.getButton() == 1){ // @ if (current_Player.isMo() && current_Player.getSch().getStart_X() == 0 && // current_Player.getSch().isIsActive() == false){ // @ current_Player.getSch().setIsActive(true); // @ current_Player.getSch().setStart_X(e.getX()); // @ current_Player.getSch().setStart_Y(e.getY()); // @ current_Player.getSch().setStart_time(); // @ } // @ } // #else if (e.getButton() == 3) { TankInfo ti = new TankInfo(); System.out.println("ISIDE"); } // #endif }
public void mousePressed(MouseEvent e) { if (e.getButton() == e.BUTTON3) cbpm.show(e.getComponent(), e.getX(), e.getY()); cbstarty = e.getY(); }
public void mouseClicked(MouseEvent e) { if (e.getButton() == 1 && e.getClickCount() == 2) { adjustZoom(1, null); } }
@Override public void mouseClicked(MouseEvent me) { if (me.getButton() == 3 || me.isPopupTrigger()) { myPopup.show((Component) me.getSource(), me.getX(), me.getY()); } }
public void mouseReleased(MouseEvent e) { mouseButtons.setNextState(e.getButton(), false); }
public void mousePressed(MouseEvent e) { mouseButtons.setNextState(e.getButton(), true); }