Before I begin, I’m using Ubuntu 10.10. This problem doesn’t exist in Firefox, just in Chrome. To check the width and height of the applet I’ve used these two methods:
screenWidth = (int)getSize().getWidth();
screenHeight = (int)getSize().geHeight();
or
screenWidth = ((Dimension)getSize()).width;
screenHeight = ((Dimension)getSize()).height;
Even though the actual measurement of the applet is correct (set by the html code), screenWidth and screenHeight are always equal to 1000.
Anyone else have this problem, or know of a work around?