This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!