View Full Version : ShapesDemo2D does not resize

April 12th, 2011, 05:32 PM
In this java 2d graphics demo:

When I resize the window, the shapes follow but they are only drawn on the same rectangle as before so that If I maximize the window I can only see a small part of the upper left straight line.

-> Is this a bug in open-jdk or is there a way to modify the code so that drawing will be done over the whole pane?

I'm not that well experienced on swing/java graphics in general. I've spent some time trying to find answer to this by now anyway. I will try to switch to Sun's java in eclipse now..

April 12th, 2011, 05:54 PM
This does not happen when using java-6-sun. So, a openjdk bug it is.