Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: OSX / IE applet paint problem



Thanks for the suggestions Joshua. I tried both of them, but neither of them
worked.


-----Original Message-----
From: Joshua E Smith [mailto:email@hidden]
Sent: Tuesday, August 20, 2002 1:48 PM
To: Gus Bazos; 'email@hidden'
Subject: Re: OSX / IE applet paint problem


Two thoughts:

1) Instead of doing this:

<a href="javascript:window.open('foo.html', 'win', ...)">

Do this:

<a href="foo.html" target="win" onclick="javascript:window.open('',
'win', ...)">

That has solved all my IE+Java+Popup problems.

2) Send the focus to the applet using Javascript:

<body onload="javascript:document.appletNameGoesHere.focus()">

I've had to use this when hiding and showing DIVs on DHTML pages.
The applet just suddenly stops painting until it gets focus.

At 1:05 PM -0700 8/20/02, Gus Bazos wrote:
>I've seen this bug reported several months back, and since it's still not
>fixed with latest revisions (MRJ3.2 IE5.2.1 OSX10.1.5), I'm wondering if
>anyone has found a workaround.
>
>Bug: Applet does not paint itself upon initialization (until you move the
>mouse over it's window)
>
>Details:
>- applet is launched in a new window using javscript (window.open)
>- large (450K) signed jar file
>- large applet screen area (> 800 x 600 )
>- all applet images are stored/retrieved from jar
>
>If applet is launched in the same window as its link (ie not a new window),
>then it appears normally.
>
>I have tried calling toolbox InvalRectRegion on the browser window from
>inside the applet's init() method, but this has no effect.
>
>I've tried creating an applet thread (in Applet.init()) that calls repaint
>on the applet every few seconds, but tellingly, the thread does not even
>start executing -- it only begins running after I move the mouse!
>
>I've also found that if I force the applet window to resize (using
>javascript window.resizeBy) then the applet does in fact become visible.
But
>the problem with this is that it must be done after the applet has
>initialized, and there is no way of knowing when this occurs without
>liveconnect. (I've tried the Applet.showDocument()-to-window-frame trick in
>lieu of liveconnect, but that only made matters worse -- browser freezes)
>
>Anyone care to offer other ideas?
>
>Thanks,
>-Gus
>
>
>Creo
>gus bazos | workflow solutions | +1.250.592.5866 | email@hidden |
>www.creo.com
>
>IMAGINE CREATE BELIEVE
>_______________________________________________
>java-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
>http://www.lists.apple.com/mailman/listinfo/java-dev
>Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
>Do not post admin requests to the list. They will be ignored.


--

-Joshua Smith
CTO/Alpha Geek
email@hidden
Kaon Interactive Inc.
Tel. (978) 823-0111 x111

www.kaon.com

Turn-Key 3D Solutions for the Web
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.