×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: David Amirkhanov
Added: Jan 20, 2017 11:29 AM
Views: 12
Tags: java events
  1.  
  2.     @Override
  3.     public void mouseDragged(MouseEvent e) {
  4.         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  5.     }
  6.  
  7.     @Override
  8.     public void mouseMoved(MouseEvent e) {
  9.         JOptionPane.showMessageDialog(this, "Hello!");
  10.         System.out.print("Hello!");
  11.         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  12.     }
  13.  
  14.     @Override
  15.     public void mouseClicked(MouseEvent e) {
  16.         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  17.     }
  18.  
  19.     @Override
  20.     public void mousePressed(MouseEvent e) {
  21.         JOptionPane.showMessageDialog(this, "Hello!");
  22.         System.out.print("Hello!");
  23.         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  24.     }
  25.  
  26.     @Override
  27.     public void mouseReleased(MouseEvent e) {
  28.         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  29.     }
  30.  
  31.     @Override
  32.     public void mouseEntered(MouseEvent e) {
  33.         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  34.     }
  35.  
  36.     @Override
  37.     public void mouseExited(MouseEvent e) {
  38.         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  39.     }