Squiffy is written in Javascript, not java.
There's no reason you can't include a java applet in your game. Then, what you can do with it will depend on the player's browser and security settings (I'm not even sure if modern browsers still support it)
Oh i mean javascript i didnt know there was a diff between java and javascript