Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Applets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Applets
applet to applet communication
sagar saravanan
Greenhorn
Posts: 5
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hai guys,
please give necessary details and code for
applet
to applet communication
Suneel Setlur
Ranch Hand
Posts: 202
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
You require to get the appletcontext for both applets.
Try going thru this.
import java.applet.*; import java.awt.*; import java.awt.event.*; public class Firstapp extends Applet implements ActionListener{ Button b1; TextField tf1,tf2; SecondApp sapp; AppletContext ac; public void start() { b1=new Button("send"); tf1=new TextField(10); tf2=new TextField(10); add(tf1); add(b1);add(tf2); b1.addActionListener(this); ac=getAppletContext(); sapp=(SecondApp)ac.getApplet("Second"); } public void actionPerformed(ActionEvent ae) { String s=tf1.getText(); sapp.tf2.setText(s); } }
Write a similar program for a second Applet.
Regards
Suneel
Suneel
A berm makes a great wind break. And we all like to break wind once in a while. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Is it possible to obtain URL Encoded Params in an Applet?
applet to applet comm
Applet to Asp Communication
applet-jsp communication
Applet-servlet communication
More...