I wouldnt call it a game.

If you click enter on the address bar, after typing the address location, rather than using a hyper link, and if seperate vm tag is used, Mozilla4 on windows7 will create 2 instances of the applet. Strange I know :S

CRAP! totally forgot. And I just put my aquarium in facebook. I should have taken screen shots of the process. GAR! Ill get to it now.

Now do you mean Firefox? :stuck_out_tongue:
And yeah that is very odd.

Thanks :smiley:

There is already a JGO Thread that goes into how to put an applet in facebook

A detailed site that gives you all you need is: http://bncapps.com/java-applet-as-a-facebook-app/

But Ill also put a clean version with screen shots and such on my site, and post a link in the shared code section.

Thanks!
For some reason Googling this was a fruitless venture.

There is a bug in that code, that crashes your app statistically once every 25.6 times:

public static String processMd5(String strtomd5)
{
   String tempmd5 = makeMd5(strtomd5);
   if (tempmd5.length() < 32)
      tempmd5 = "0"+tempmd5;
   return tempmd5;
}

Replace it with:

public static String processMd5(String strtomd5)
{
   String tempmd5 = makeMd5(strtomd5);
   while (tempmd5.length() < 32)
      tempmd5 = "0"+tempmd5;
   return tempmd5;
}

It’s basically dirty stupid, to grab the hash from a MessageDigest, put it into a BigInteger and convert it into a variable length hex… and then failing to ensure it becomes 32 chars long again ::slight_smile:

sweet. I would never have considered that as an issue.

appreciation medal++