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

6351820: JFrame is painted incorrectly the first time.

    XMLWordPrintable

Details

    Description

      JFrame with insets set and a component added to it, is not painted properly (on the first time)and shows the desktop background when the test is launched.
      Steps to reproduce;
      1)Comile and execute the attached test with build mustang b59.
      $JAVA_HOME/bin/java FramePaintBug
      Observed:JFrame is not painted properly.
      Minimise and Maximize the JFrame back and the repaint causes the JFrame to be rendered correctly.

      2) Execute the test with the command line system property set as swing.handleTopLevelPaint=true
      $JAVA_HOME/bin/java swing.handleTopLevelPaint=true FramePaintBug
      Observed:JFrame is not painted properly.
      Minimise and Maximize the JFrame back and the repaint causes the JFrame to be rendered correctly.

      3) Execute the test with the command line system property set as swing.handleTopLevelPaint=false
      $JAVA_HOME/bin/java swing.handleTopLevelPaint=true FramePaintBug
      Now the JFrame is painted PROPERLY.

      This is observed since build b32 and is probably a regression to the gray rect fix 4967886.

      Attachments

        Issue Links

          Activity

            People

              svioletsunw Scott Violet (Inactive)
              smandalisunw Srinivas Mandalika (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: