I have spent hours researching this question and am stumped- Also I am new to JS. I have an applet programmed using processing and all I want to do is pass one number from the applet to JS.
For instance, if I have a method that returns an int, how do I send that int to a JS alert for instance.
I have found some references on the matter and tried to follow their directions. I cannot find the package jstojava and have had no luck figuring out how to reference methods within an applet from JS.