Revision: 702
Author: [email protected]
Date: Fri Oct 9 19:20:44 2009
Log: Resolves issue 130, use this.canvas instead of constructor arg canvas
(which may be null)
http://code.google.com/p/piccolo2d/source/detail?r=702
Modified:
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/PFrame.java
=======================================
---
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/PFrame.java
Fri Oct 9 14:15:05 2009
+++
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/PFrame.java
Fri Oct 9 19:20:44 2009
@@ -126,10 +126,10 @@
this.canvas = canvas;
}
- setContentPane(canvas);
+ setContentPane(this.canvas);
validate();
setFullScreenMode(fullScreen);
- canvas.requestFocus();
+ this.canvas.requestFocus();
beforeInitialize();
// Manipulation of Piccolo's scene graph should be done from Swings
--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---