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

Repainting problem on Canvas

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta3
    • CPU:
      sparc
    • OS:
      solaris_9
    • Verification:
      Verified

      Description


      Tested with Merlin beta-refresh b73 on Solaris 8, 9 Sparc, x86 and RedHat Linux6.2J update.

      Repainting can not work well on Canvas.

      To see the problem, please excute the steps below;

      * The test case, DispTest.java, is attached.

      [Steps to reproduce]

      1. Compile DispTest.java
      2. Run DispTest.
         Then, a frame which has ScrollPane and Canvas comes up and a horizontal scroll bar appears by default, but a vertical scroll bar does not.
      3. Select File->Open and open "english.txt" which is also attached.
         Then, the text can be drawn on Canvas and the text can be displayed within the defalut size, so the vertical scroll bar does not appear.
      (* characters default size is 12point)
      4. Select Font->size->18
         Then, it can be applied properly and the text can't be displayed within the default canvas size in the vertical direction this time, so a vertical scroll bar appears.
      5. Select Font->size->12 (or smaller than 18)
         The problem occurs.
         This change can not be applied.
         An trigger for redrawing such as resizing the window etc... is needed to applying the change.
         * If you select another font menu item, this problem is seen also.



      This is reproducible with Merlin-beta.
      This is not reproducible on Windows with Merlin beta-refresh.
      This is not reproducible with Ladybird, so this is a regression.


      I attach DispTestWithBuffer.java also, with which this problem is not reproducible.
      (* This test case uses image buffering for drawing the text.)
      To see if the problem is not reproducible,
      please run DispTestWithBurrer and follow "Steps to reproduce" above.

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

      I confirmed that this is still reproducible with b79 on Solaris9/Sparc and Solaris8/x86 using attached test case DispTest.

      I tried DispTestWithBuffer again and it turned out that it is not reproducible with the steps to rerpoduce above, however, the same kind of problem is reproducible with the steps below;

      1. Follow 1 - 4 steps above.
      2. Select Font->size->24.
      Then, the problem occurs and the change is not applied.

      ###@###.### 2001-09-18
      ============================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              prssunw Prs Prs (Inactive)
              Reporter:
              mmtokunasunw Mtokunaga Mtokunaga (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: