0

I have 2 applets

One applet adds in some labeled text fields and reads in some user variables.

The second Applet Starts a simple pong game.

As you may have already guessed I'm trying to get the pong game to start up with the values I've read in. (the values are ball speed paddle speed Artificial Intellegence implementation of the paddles)

But i'm not sure how to give the data to pong applet. or how to make one applet start up the pong game after reading in the data. (having trouble getting the thread to start)

3
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by jwenting
0

Have already written the code for communication between 2 applets? If yes, post the code and the error you're getting..

0

I think I've nailed the solution down to haveing one applet start the other applet as a jframe. I just have no idea how to do that. When i again have access to my code i will post a few things

0

no, that's not the solution. You'd not have two applets in that case but one applet with 2 windows.

There are several tutorials on intra-applet communication out there and I'm sure several books mentioning it as well.
Do some research and you should figure it out. I've never needed applets so I've never had to play with that, and I don't intend to start now.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.