-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
beta3
-
sparc
-
solaris_9
-
Verified
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
============================================================================
- relates to
-
JDK-4490079 Repaint problems in javaws with merlin
-
- Closed
-