Skip to main content

Resizing a window causes an applet to be drawn incorrectly in IE7

2 replies [Last post]
brackeen
Offline
Joined: 2008-03-02
Points: 0

I submitted this bug:
http://bugs.sun.com/view_bug.do?bug_id=6697889
But it got marked as "Not Reproducible". I tested on another machine, and low and behold, I couldn't reproduce it on that machine either. So I've got one machine that can reproduce it, and another that can't.

After some digging, I noticed that the following behavior about applet.paint(g)

Bugged machine, IE7: applet.paint(g) not called while resizing
Bugged machine, FF3: applet.paint(g) not called while resizing
OK machine, IE7: applet.paint(g) continuously called while resizing
OK machine, FF3: applet.paint(g) not called while resizing

Both machines have 6u10 b23.

This is my code:
import java.awt.*;
import java.applet.Applet;

public class Test extends Applet {
public void paint(Graphics g) {
System.out.println("paint");
g.setColor(Color.ORANGE);
g.fillRect(0, 0, getWidth(), getHeight());
}
}

So - should I resubmit the bug, or post a comment on that closed bug, or what?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kbr
Offline
Joined: 2003-06-16
Points: 0

Again, we weren't able to reproduce the problem in house. I suspect that the issue may be related to the Direct3D acceleration used by default in 6u10. Try putting -Dsun.java2d.d3d=false in the Java Applet Runtime Parameters in the Java Control Panel and seeing whether that affects the behavior.

brackeen
Offline
Joined: 2008-03-02
Points: 0

Using -Dsun.java2d.d3d=false did not affect the behavior. Also, I updated to b25.

Let me know what other information I can provide, or if providing a screencast of the bug in action would be helpful.