208.229.43.126 writes:
When you are trying to create a new component in Java that contains a canvas, why does the canvas come out to be 10x10? I don't want to set the size of the canvas. I'm trying to use getPreferredSize() method, but it returns 0.
HELP!
202.54.7.29 writes:
unless u set the size of a canvas, or unless u set the size of the frame that holds the canvas, u will not get a viewable sized window.. that's the way it is.. u have to setSize(width,ht) for the frame.. and add the canvas...