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

Entire screen flickers with 1.2

XMLWordPrintable

    • 2d
    • x86
    • windows_nt



      Name: el35337 Date: 04/08/98


      I've reproduced this on two different NT machines,
      both of which have an "s3 compatible display".

      When I run the program below, any time I move the
      Frame of the running application, my entire screen
      flickers wildly.

      If I decrease the refresh rate on my monitor, the
      problem is not as bad, but then the screen as a
      whole doesn't look as sharp.

      This problem does not reproduce under the JDK 1.1.

      Here's the test case:

      import java.awt.Frame;
      import java.awt.Image;
      import java.awt.Graphics;

      public class Test extends Frame
      {
      private Image m_img = null;

      public Test()
      {
      }

      public void paint( Graphics g )
      {
      if ( m_img == null )
      m_img = createImage(100, 100);
      g.drawImage(m_img, 40, 40, this);
      }

      static public void main( String args[] )
      {
      Test t = new Test();
      t.setBounds(100, 100, 200, 200);
      t.show();
      }
      }
      (Review ID: 27275)
      ======================================================================

            dfeldsunw Dmitry Feld (Inactive)
            elarsen Erik Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: