?
Solved

Using getApplet()

Posted on 1997-05-20
2
Medium Priority
?
271 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 50 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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 learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month8 days, 8 hours left to enroll

764 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