GoogleCodeArchive / piccolo2d

Automatically exported from code.google.com/p/piccolo2d
0 stars 0 forks source link

Setting PFrame size in initialize() does not resize canvas #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A subclass of PFrame which sets its size in the initialize() method, or in
its constructor, does not resize its canvas.  Explicitly setting the canvas
size in initialize() or the constructor does not fix the issue.  The canvas
is not resized until a Swing invalidate()/validate() cycle is forced,
through manually resizing the PFrame window, for instance.

Original issue reported on code.google.com by heue...@gmail.com on 21 Oct 2009 at 3:29

GoogleCodeExporter commented 9 years ago
$ svn commit -m "Issue 141 ; adding an example that demonstrates the bug"
Adding        
examples/src/main/java/edu/umd/cs/piccolo/examples/FrameCanvasSizeBugExample.jav
a
Transmitting file data ...
Committed revision 783.

Original comment by heue...@gmail.com on 21 Oct 2009 at 3:33

GoogleCodeExporter commented 9 years ago
After further review, this happens only on Windows when running
FrameCanvasSizeBugExample as a Java Application from within Eclipse.

The example works fine for me on 64-bit linux with sun-jdk 1.6, 32-bit linux 
with
open-jdk 1.6, and Windows with JDKs 1.5+ outside of Eclipse.

Original comment by heue...@gmail.com on 21 Oct 2009 at 7:54

GoogleCodeExporter commented 9 years ago
Verifying Wont Fixes. Reasons are sound by my mind.

Original comment by allain.lalonde on 5 Nov 2009 at 3:15