The Artima Developer Community
Sponsored Link

Java Answers Forum
applet communication

1 reply on 1 page. Most recent reply: Oct 24, 2002 7:55 PM by Ramu

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
ravikumar

Posts: 10
Nickname: ji
Registered: Oct, 2002

applet communication Posted: Oct 17, 2002 10:04 AM
Reply to this message Reply
Advertisement
hi all,
i dont know how to make 2 applets communicate with each other...i have an applet window and when i click on this window, the second applet window shows some graph...so how do i make this second window listen to the first one?
thanks..


Ramu

Posts: 29
Nickname: sripoorna
Registered: Oct, 2002

Re: applet communication Posted: Oct 24, 2002 7:55 PM
Reply to this message Reply
hi,

applet communication is acheived through the applet context.
A context is an environment where it can give the information about the services(in our case it is applets) running on it.

So first get the applet from AppletContext.getApplet(String yourappletName)

Applet applet_Test = AppletContext.getAppletContext(String yourAppletName);

and proceed further with the returned applet(applet_Test).

yours
ramu

Flat View: This topic has 1 reply on 1 page
Topic: getch() Previous Topic   Next Topic Topic: Compiling .Java - Missing Classes???

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use