Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4939622

Resizing frame with XAWT causes background to be completely redrawn

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 5.0
    • 5.0
    • client-libs
    • 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.

            ssisunw Ssi Ssi (Inactive)
            svioletsunw Scott Violet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: