JDK-4510066 : Background not being cleared on windows
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_98
  • CPU: x86
  • Submitted: 2001-10-03
  • Updated: 2001-10-23
  • Resolved: 2001-10-22
Related Reports
Duplicate :  
Description
On GraphicsDrawstrings in CharView, various font types such as Dialog, DialogInput, SanSerif, etc were not displayed appropriately. Also, if you rotate the fonts in plain, bold, italics, and bolditalics, all font types were overlapped. 

tested with jdk1.4-beta3 b81 on Korean windows 2000 Pro, German Windows 98SE.

Steps to reproduce:

1. Get the test case from:
/net/sqesvr/export/i18n/i18n_ws/OverSea/Japan/FJ/fj-test-win32-042701.tar

2. Untar the file. CharView is under awt directory.

3. invoke CharView

4. Set unicode range ac00 (Korean) or 0000 (German)
5. Select font size
6. Select GraphicsDrawstrings

7. Rotate the font type - Dialog, DialogInput, Monospaced, SanSerif, and Serif
8. Rotate plain, bold, italics, and bolditalics,

You'll see the fonts in a previous setting did not disappear but remain.

I attached a bitmap


###@###.### 2001-10-02

Comments
WORK AROUND Try using invalidate() before repaint() call. ###@###.### 2001-10-08
08-10-2001

EVALUATION This is nothing to do with any particular locale or text, nor rotation of text. (the word rotation in the description and original synopsis is used to mean "cycle" through different font styles). In this test you can select different fonts and also the styles of the fonts. It is depending on the background being cleared for it before it paints. This worked in 1.3 and worked in merlin builds up to and including b74. The bug first occurred in b75 and I believe its a consequence of the fix for 4449574 which apparently updated WComponentPeer to not do a clear rect. ###@###.### 2001-10-03 ============================ Please provide the path to CharView java source. Thanks. ###@###.### 2001-10-03 ------------------ Please get a file from: /net/sqesvr/export/i18n/i18n_ws/OverSea/Japan/FJ/fj-test-win32-042701.tar As described in the Description, if you untar the file, CharView is under i18n_win/awt/ directory. ###@###.### 2001-10-04 Unfortunately there is no .java file with the source for CharView in the tar file. Please advise. Please attach the source file to the bug. Thanks. ###@###.### 2001-10-05 ------------------- I attached CharView.java and a source bundle which includes CharView :fj-test-source-042701.tar You can also find the file in: /net/sqesvr/export/i18n/i18n_ws/OverSea/Japan/FJ/fj-test-source-042701.tar Pleaase untar the file. CharView.java is under I18n_testing/awt directory. ###@###.### 2001-10-05 Can the submitter please re-test with Merlin B82 and let me know if the problem still exists. Thank you for the source code. ###@###.### 2001-10-08 ------------------- It's reproducible with jdk1.4 beta3 b82 on Windows. Tested with NT4 de_DE locale. ###@###.### 2001-10-08 A duplicate of 4512592 ###@###.### 2001-10-22
08-10-2001