Look, applets have been out of favor since around 1996, largely because they’re slow, buggy, and inconsistent (and impossible to debug on a general basis.)
If you need client-side functionality, do us all a favor and use Javascript. Let applets die the death they should have died long, long ago, in a galaxy far, far away.