Advertisement
RandomGuy32

constructor

Sep 13th, 2015
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. public Canvas() throws IOException {
  2.     setDoubleBuffered(true);
  3.     cursor = this.getMousePosition();
  4. }
  5. public GameCanvas() throws IOException {
  6.     super();
  7.     addMouseListener(prepareMouseInput());
  8. }
  9. public PaletteCanvas(int innerWidth_, int innerHeight_) throws IOException {
  10.     super();
  11.     innerWidth = innerWidth_;
  12.     innerHeight = innerHeight_;
  13.     addMouseListener(prepareMouseInput());
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement