Solved

Using getApplet()

Posted on 1997-05-20
2
263 Views
Last Modified: 2012-08-14
I would like to know how to use getApplet().  I am trying to retrieve the information from an object on one applet and display it on another applet.  The applets are also on separate HTML pages (if that matters).  I am not sure if getApplet() is the right way to go, but that seems to be the direction that some people have told me to go.  If there is another solution, I would appreciate it if you could let me know.  Some code examples would be beneficial also.  Thanks in advance.
0
Comment
Question by:Bryan051997
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 6

Accepted Solution

by:
jpk041897 earned 25 total points
ID: 1220658
If the code is on diferent pages, you will have to use either CORBA or RMI, and override the STOP method for the applet(s) that will go out of context (be paged out) to insure that they remain running while in background.

You might  also need to associate them to a frame if they don't implement runnable.

For information on CORBA see:

http://www.acl.lanl.gov/CORBA/

you'll find links to evrything you need, including tutorials, there.

RMI is currently beeing developed by SUN and is still somewhat inmature, you can obtain it at :

http://splash.javasoft.com/pages/intro.html

and you can read its docs at:

http://www.crg.cs.nott.ac.uk/~cmg/SRP/jdk1.1-docs/guide/rmi/index.html

Additional documentation is still lacking since the language specs are still evolving.

All in all I would suggest you use CORBA at this stage, although RMI looks like it will eventualy be the most robust of both technologies, it is still to inmature to be used for production at this stage.
0
 
LVL 6

Expert Comment

by:jpk041897
ID: 1220659
Just found a fairly good article on using RMI at:

http://www.javacats.com/US/
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question