Guest User

Untitled

a guest
Jul 21st, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. import java.awt.event.*;
  2. /**
  3. * Write a description of class Controller here.
  4. *
  5. * @author (your name)
  6. * @version (a version number or a date)
  7. */
  8. public class Controller implements MouseListener
  9. {
  10. private Bord b;
  11. private View v;
  12.  
  13. /**
  14. * Constructor for objects of class Controller
  15. */
  16. public Controller(Bord b, View v)
  17. {
  18. this.b = b;
  19. this.v = v;
  20. v.addMouseListener(this);
  21. }
  22.  
  23. public void mousePressed(MouseEvent e){
  24. }
  25. public void mouseReleased(MouseEvent e){}
  26. public void mouseClicked(MouseEvent e){}
  27. public void mouseEntered(MouseEvent e){}
  28. public void mouseExited(MouseEvent e){}
Add Comment
Please, Sign In to add comment