-
Bug
-
Resolution: Fixed
-
P2
-
5.0
-
b32
-
x86
-
linux_redhat_9.0
Here's the test case:
import java.awt.*;
public class FrameTest extends Frame {
public void paint(Graphics g) {
g.setColor(Color.RED);
g.fillRect(0, 0, getWidth(), getHeight());
}
public void update(Graphics g) {
paint(g);
}
public static void main(String[] args) {
Frame f = new FrameTest();
f.setBounds(0, 0, 200, 200);
f.show();
}
}
Try resizing the frame and as it gets bigger and bigger the flickering is
more noticable. I couldn't reproduce this MToolkit.
import java.awt.*;
public class FrameTest extends Frame {
public void paint(Graphics g) {
g.setColor(Color.RED);
g.fillRect(0, 0, getWidth(), getHeight());
}
public void update(Graphics g) {
paint(g);
}
public static void main(String[] args) {
Frame f = new FrameTest();
f.setBounds(0, 0, 200, 200);
f.show();
}
}
Try resizing the frame and as it gets bigger and bigger the flickering is
more noticable. I couldn't reproduce this MToolkit.
- relates to
-
JDK-4955840 AWT components flicker on programmatic resize
- Closed
-
JDK-5041482 Using JFrame.setDefaultLookAndFeelDecorated(true) causes the frame to flicker
- Closed