Skip to main content

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

2 replies [Last post]
Joined: 2008-03-02

I submitted this bug:
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) {
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.
Joined: 2003-06-16

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.

Joined: 2008-03-02

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.