Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Communicating between applets

 
Sameera Abeysinghe
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I need to communicate between 2 applets
This is my html code


This is my code in Big.class


But it always gives null pointer exception
p and sml prints null

As the String parameter to getApplet method I try
�Small.class� �Small� �mall� �all�
Nothing works

But the 2 applets work
You can see them at
http://www.woxzone.com/army/map/Army.html
(You will nedd 1.5 update 6)

Need help fast

Thank you,

Sameera
[ February 10, 2006: Message edited by: Sameera Abeysinghe ]
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find information on communicating between applets here. Specifically, the applet name must be coded into the html.

[ February 10, 2006: Message edited by: Garrett Rowe ]
 
Sameera Abeysinghe
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank a Lot

got it working

I haven�t given the name attribute at the html pag
......class" width="500" height="500" name="Small">.......


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic