getApplets() method of AppletContext w/ Java 1.4.2_13 and IE 7.0 (orOpera 9.10 for that matter)

J

John L.

Apparently, the getApplets method of the AppletContext class does not
work correctly in JRE 1.4.2_13. I've listed the individual
enumerations, to no avail.

I am using the OBJECT tag to embed the applets into HTML..

Does anyone have experience using this method successfully with a
later version of the JRE?

Thanks in advance for any help you may provide.
 
A

Andrew Thompson

John said:
Apparently, the getApplets method of the AppletContext class does not
work correctly in JRE 1.4.2_13.

Using which browser (make and version) on which OS (make and version).

Why are you using an obsolescent Java?
Why are you using applets?
..I've listed the individual
enumerations, to no avail.

What's the URL of your test case?
I am using the OBJECT tag to embed the applets into HTML..

Does anyone have experience using this method successfully with a
later version of the JRE?

I vaguely recall seeing it work with later versions, but it only
identifies applets within the same VM instance. It is up to
the browser as to whether different frames, tabs or instances
are *run* using a separaate VM (and that might be the real
problem here).
Thanks in advance for any help you may provide.

No worries. Note that to get any further help from me
on the subject of applets, you will need to answer each
of my questions.

--
Andrew Thompson
http://www.physci.org/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200712/1
 
R

Roedy Green

Apparently, the getApplets method of the AppletContext class does not
work correctly in JRE 1.4.2_13. I've listed the individual
enumerations, to no avail.

I use that method in the CurrCon Applet. Try going to
http://mindprod.com/applet/currconmanual.html

Try changing the country. The prices on the entire page should change
in unison. If they don't, you might have a problem with 1.4.2_13. If
they do, your problem is you are likely not using getApplets properly.
Check the source code in the CurrCon download. See
http://mindprod.com/products1.html#CURRCON
 
A

Andrew Thompson

Roedy Green wrote:
...
I use that method in the CurrCon Applet. Try going to
http://mindprod.com/applet/currconmanual.html

Try changing the country. The prices on the entire page should change
in unison. If they don't, you might have a problem with 1.4.2_13. If
they do, your problem is you are likely not using getApplets properly.

I'll make a wild, (semi) educated guess that you are wrong in
the assumption that the OP has made any programming error.

As I mentioned in my reply. The behaviour of the 'getApplets'
method is entirely at the 'mercy' of the browser's decision as
to when to spawn a new VM - and that is ..
a) Not specified by Sun, and therefore..
b) Quite unpredictable.

OTOH - I would not be sad to see *evidence* that I was wrong.
Which pretty much kicks it back to the OP.

Does Roedy's applet fail in the same way?
(If so - my conjecture might be correct, if not,
I just wasted some (more) bandwidth.)

--
Andrew Thompson
http://www.physci.org/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200712/1
 
J

John L.

I use that method in the CurrCon Applet. Try going tohttp://mindprod.com/applet/currconmanual.html

Try changing the country. The prices on the entire page should change
in unison. If they don't, you might have a problem with 1.4.2_13. If
they do, your problem is you are likely not using getApplets properly.
Check the source code in the CurrCon download. Seehttp://mindprod.com/products1.html#CURRCON

Thank you, (or perhaps Merci beaucoup). The error was in handling the
result of the getApplets().

Randy's CurrCon example worked with IE 7.0 (alas, not Opera 9.10), and
Java 1.4.2_16.

I was using the toString() method of the returned result, rather than
an instanceof comparison.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top