Skip to main content
GameDev.net gamedev.net
🔒 Locked

Java JApplet sizing

Started by ju2wheels Aug 1, 2005 at 9:43 AM 0 replies 300+ views
Original Post
ju2wheels
ju2wheels
Hi I was wondering if there was a way to size an applet from within the applet code itself as opposed to the width and height attribute tags in html. I need the applet to have different sizes depending on the OS that runs it, therefore I want to size the applet within the applet code itself. Ive tried using setSize(w,h) and resize(w,h) within the init() method of my JApplet but neither seems to be producing the result that im looking for. Any one have any ideas?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.