I'd also like to see this fixed. I tried to overcome this by adding some event handlers and now my canvas works slightly better.
I have added to my frame (containing the canvas) a WindowListener that repaints the view when the window is activated. Also there is a FocusListener that does the same thing, and finally, a MouseListener on the canvas that repaints on MouseEntered and MouseReleased events. This reduces the phenomenom and when it happens, clicking and releasing the mouse does the repaint.
I really don't like these workarounds and I'd also would like somebody at Sun to take this seriously, since the bug must be simple and easy to fix. It is also very easy to duplicate with the example code sent by Georg Rehfeld on May 7th.
Pasi
-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott Rutledge
Sent: 14. toukokuuta 2002 1:23
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Canvas disappearing (goes blank/grey)
Can anyone point me to someone at Sun that I could talk to this about? I
haven't managed to find any way to fix this, and it's stopping us from
moving to 1.4 (which we've been wanting to do for a while). I'm hoping they
can provide some sort of patch we could use.
Thanks,
Scott
At 03:56 PM 5/8/2002 -0600, you wrote:
>This is an issue with javaw and AWT. If you run your app with plain
>'java.exe', it will work fine. It's probably related to this bug:
>http://developer.java.sun.com/developer/bugParade/bugs/4458337.html
>
>I haven't managed to find any workarounds yet.
>
>At 11:55 PM 5/8/2002 +0200, you wrote:
>>Hi,
>>
>>Roger Berggren wrote:
>>
>>>Hi,
>>>
>>>I'm trying to create an application using Swing and Java 3D.
>>>
>>>My problem is that it seems as if the Canvas3D stops rendering
>>>when I resize or try to open a file using the standard file opener.
>>>
>>>It's even more strange than that. If you resize the window and
>>>releases the mouse, everything looks good. But as soon as the
>>>mouse is moved (inside the app), the Canvas3D goes blank.
>>>
>>>I've tried to go through the email archive and the j3d faq regarding
>>>lightweight/heavyweight problems, but have not found any help.
>>>
>>>Does anybody know if this is a known bug, or am I just doing
>>>something strange?
>>>
>>>I've attached the source files to reproduce the problem.
>>>I'm running java 1.4.0 and java 3D 1.3 beta1 windows opengl
>>>
>>>Regards,
>>>
>>>Roger Berggren
>>
>>
>>I say nothing more. I have same trouble, please can anybody give a
>>solution or explain, at least, which the problem is?
>>
>>Thanks.
>>
>>===========================================================================
>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>>of the message "signoff JAVA3D-INTEREST". For general help, send email to
>>[EMAIL PROTECTED] and include in the body of the message "help".
>
>=========================
>Scott Rutledge, Lead Programmer
>3D Design Division
>BEQ Technologies Inc.
>http://www.beq.ca
>=========================
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST". For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
=========================
Scott Rutledge, Lead Programmer
3D Design Division
BEQ Technologies Inc.
http://www.beq.ca
=========================
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
