piccolo2d / piccolo2d.java

Structured 2D Graphics Framework
http://piccolo2d.org
Other
51 stars 14 forks source link

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

Closed mro closed 9 years ago

mro commented 9 years ago

Originally reported on Google Code with ID 141

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.

Reported by heuermh on 2009-10-21 03:29:59

mro 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.java
Transmitting file data ...
Committed revision 783.

Reported by heuermh on 2009-10-21 03:33:12

mro 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.

Reported by heuermh on 2009-10-21 19:54:54

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

Reported by allain.lalonde on 2009-11-05 15:15:12