Exemplo n.º 1
0
    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;
    }
Exemplo n.º 2
0
 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
 }
Exemplo n.º 3
0
 public void mousePressed(MouseEvent e) {
   if (e.getButton() == e.BUTTON3) cbpm.show(e.getComponent(), e.getX(), e.getY());
   cbstarty = e.getY();
 }
Exemplo n.º 4
0
 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());
   }
 }
Exemplo n.º 6
0
 public void mouseReleased(MouseEvent e) {
   mouseButtons.setNextState(e.getButton(), false);
 }
Exemplo n.º 7
0
 public void mousePressed(MouseEvent e) {
   mouseButtons.setNextState(e.getButton(), true);
 }