Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
John L. - 05 Dec 2007 21:28 GMT
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.
Andrew Thompson - 05 Dec 2007 22:11 GMT
>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.

Signature

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

Roedy Green - 06 Dec 2007 12:53 GMT
On Wed, 5 Dec 2007 13:28:26 -0800 (PST), "John L."
<lashlaru83@juno.com> wrote, quoted or indirectly quoted someone who
said :

>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
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Andrew Thompson - 06 Dec 2007 13:03 GMT
...
>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.)

Signature

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

John L. - 06 Dec 2007 18:40 GMT
On Dec 6, 7:53 am, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> On Wed, 5 Dec 2007 13:28:26 -0800 (PST), "John L."
> <lashlar...@juno.com> wrote, quoted or indirectly quoted someone who
[quoted text clipped - 13 lines]
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com

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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.