• Post Reply Bookmark Topic Watch Topic
  • New Topic

applet applet communication  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!