Applet has no settings attribute

I know im probably going to get flamed for this and advised to use WebStart or whatever, but the situation is that I really want to use an applet.

Why does an applet have no settings? Example, I cannot get the width and height of the applet using the setting attribute. For the moment ive hard-coded it in, but thats not ideal. Now, I want to detect if its running as an applet or not. And if it is, get a handle to the applet parent and call its stop method to stop my applet in a webpage.


Try using AppletHarness.getApplet(), it will retrieve the applet for your application.

1 Like

This works, nice and simple, Thank you!