12.07.2015 Views

Drawing and Java2D

Drawing and Java2D

Drawing and Java2D

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

WindowAdapter class Implementing the WindowListener interfacemeans needing to implement all itsmethods, even if you don't need them WindowAdapter is an abstract superclassthat implements WindowListener <strong>and</strong>provides default blank bodies for themethods Subclass WindowAdapter <strong>and</strong> override justthe ones you need: class WinEvents extends WindowAdapter {public void windowClosed( WindowEvent e ) {CMPT166: drawing <strong>and</strong> <strong>Java2D</strong> 15 Feb 20118

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!