• Post Reply Bookmark Topic Watch Topic
  • New Topic

applet applet communication

 
Prashantha Kumar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a html page which contains two applets and another html. The two applet represents the swing component JTree and JTable And a html page has > & < buttons. On clicking > button I want to pass some paramaters from JTree to JTable. Is it possible? if so how?
 
mohana konakanchi
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
If two applets reside in same HTML page..
You can able to communicate between them.
You need to give names to each applet in HTML.
use
getAppletContext().getApplet("Myapplet1");
will return a handle of applet name Myapplet1.
hope this will help.
Mohana
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!