JME3 Applet Parameters

Hi everybody!

I tried and searched a long time to fix my problem.

When I clean and built my project, i get an html-file with the running applet in it:

pre type="xml"











`/pre`

Now i want to add my own parameter like -background_green. It is no problem with normal JavaApplication. I read the “String[] args” Parameter from the main-method. The java-applet class provides ‘getParameter()’ to read the Parameter, but the SimpleApplication class has no Method like that.

So how i can read the parameters given by a html-page to my applet?

Greetings,

ditzel

Use AppletHarness.getApplet() and then you can read the params from it

Momoko_Fan said:
Use AppletHarness.getApplet() and then you can read the params from it


Works great! Thank you very much!