简体   繁体   中英

Changing/Adding Java applet parameters from within applet

有没有办法从applet本身内部更改/添加applet参数?

I do not think so. Applet parameters are defined on HTML page, are read by browser and passed to applet by java plug in via applet context. Even if you run code via LiveConnect and change dynamically the parameters of applet when applet is running it will not get new values because java plugin will not call its init() method again.

The big question is why do you need this? If you read some parameter from applet parameters you assign it to some variable inside applet. Do you want to change the value of this variable at runtime? Just do it, ie assign new value to this internal variable of applet.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM