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

Win32: JFrame does not correctly repaint "damaged" areas.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      windows_nt

      Description



      Name: dmC97671 Date: 04/05/2000

      ###@###.###

      The last known good Merlin build:
          java version "1.4.0alpha"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0alpha-B)
          Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)

      The last known good Kestrel build:
          java version "1.3.0rc2"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc2-Y)
          Java HotSpot(TM) Client VM (build 1.3.0rc2-Y, mixed mode)

      First build to reproduce:
          java version "1.4.0beta"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-E)
          Java HotSpot(TM) Client VM (build 1.3.0rc2-W, mixed mode)

      The test has JFrame with red content pane and green background.

      To reproduce the bug, run the following test case and follow the steps desribed below:
      1. Run TestClip.java, you'll see the frame filled with red.
      2. Move another window(ex. Windows Explorer) over the frame. Notice that some areas
      of the frame will be filled with green and the frame remains in such garbaged state.
      3. Resize the frame, it again will be filled with red.

      import java.awt.Color;
      import java.awt.event.*;
      import javax.swing.JFrame;
      import javax.swing.JComponent;

      public class TestClip extends JFrame {
          public static void main(String[] args) {
              new TestClip();
          }
          public TestClip() {
              super("Test clip");
              addWindowListener(new WindowAdapter() {
                  public void windowClosing(WindowEvent e) {
                      System.exit(0);
                  }
              });
              getContentPane().setBackground(Color.red);
              getRootPane().setBackground(Color.blue);
              setBackground(Color.green);
              setBounds(60, 10, 100, 200);
              setVisible(true);
          }
      }

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              chaasesunw Chet Haase (Inactive)
              Reporter:
              dmikhalksunw Denis Mikhalkin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: