I'm running a little applet game in the appletviewer, and I have another java program that periodically tries to get the 'score' field from the applet.
However right now the way I'm trying to do this is (slightly pseudocode-ified):
Applet myGame = Game();
Runtime.exec("appletviewer Game");
score = myGame.getCurrentScore;
The problem is that the applet variable that I initialize doesn't correspond to the Applet created by the appletviewer. How can I resolve this?
You wouldn't be able to do that. A few options:
myGame.startGame()
.)