Solved

Using getApplet()

Posted on 1997-05-20
2
228 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
  • 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Java virtual machine monitoring tools 3 39
scoreUp challenge 14 48
factorial example challenge 10 62
Modeling a class in java 5 32
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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 the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now