LWJGL Applet Acting Extremely Odd In Web Browsers[Fixed]

Started by Marltoro, December 24, 2011, 22:12:00

Previous topic - Next topic

Marltoro

I recently made a LWJGL program that works perfectly fine in the Applet Viewer. But when I try to run it web browsers, it starts acting up. In Chrome and FireFox it will show the LWJGL loading screen then the applet will turn white. In Internet Explorer it will show the LWJGL loading screen then change the background color to blue after I click on it. Does anyone have any idea what could be wrong with my program? I signed all the files and I can run the Gear Applet perfectly fine. If anyone could post a picture of their Export Jar File process that would be extremely helpful.

Also, there are no errors in the Java Console.

Edit: At one point in time I got it to work in Firefox by resizing the page and clicking on it a few times. Haven't been able to that since.


Marltoro

Fixed it, I made two variables called displayWidth and displayHeight that were equal to 800 and 600.
I replaced:
display_parent.setSize(getDisplayWidth(), getDisplayHeight());

I replaced it with:
display_parent.setSize(getWidth(), getHeight());