Applet-communication
I have 3 applets, a, b1 and b2.
Applet a has a list with 2 different numbers.
I use the getAppletInfo() - function to return the data from the list to the applets b1 and b2.
The problem is that the getAppletInfo() - function returns only one of the two fields. How do I make it send row one to b1 and row 2 to b2?
E-mail me! =)
godlygift@hotmail.com
Thanx!
[407 byte] By [
GodsGift] at [2007-9-26 23:40:29]

Why don't you code the getAppletInfo method to return a string like this:"row one for b1, row two for b2"and in b1 and b2, use the StringTokenizer to parse the string and use whatever is needed.V.V.
The java.util.StringTokenizer can be used to parse a String. You would have to store the information in the string.
String separator = " ";
String s = "1" +separator+ +field[0]+ separator +field[1]+ " " + ...
To parse it use
StringTokenizer st = new StringTokenizer(appletInfo, separator);
I hope that makes it clearer
Djamal
DOMO at 2007-7-4 13:34:22 >
![top of Java-index,Archived Forums,Portability & Platform Independence [Archive]...](/library/images/10/top.gif)