RandomGuy32

constructor

Sep 13th, 2015
138
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data