JDK-4618396 : Lots's square box for swing on windows 2000 pro simplified chinese
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt:i18n
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2001-12-29
  • Updated: 2002-02-05
  • Resolved: 2002-02-05
Related Reports
Duplicate :  
Description
Windows2000 pro or server
simplified chinese
merlin b90

run swingset2 demo, set it's L&F as windows,  then lots of character are replace as space square.

Also, you can reproduce it using attached test case.
#tar -xvf swing_tests.tar
#cd swing\classes
#java SwingTest -resource resources zh

then set the L&F to windows, will get the picture like attachment. 
You can also choose the UI's open menu, save menu etc, so many square box.

I have tried it on window98, NT and ME for sch and windows2000 pro ,server for traditional, all ok.

Comments
EVALUATION You need to "reconfigure" your Display->Appearance->(Item,Font) setting in Control Panel, the current implementation of Windows L&F uses the font setting here for all swing components Windows Look&Feel display, I believe your testing machine currently has "Tahoma" (which should not include any Chinese glyph) set as the font for most text display purpose, change it to one Chinese font, say "songti" should solve the problem (also pick up a larger size for better Chinese appearance). Looks like Chinese W2K Pro is able to "automately" map to use a Chinese font for Chinese characters when "Tahoma" is set as for its systemwide text display (like menu, frame title, messages), maybe Java should do the same thing in future release, so I will keep this bug open for a while. (But downgrade it to P4 for "not a showstopper for merlin") ###@###.### 2002-01-02 close as duplicate of 4615396, either swing team needs to figure out a better way to specify font for Windows L&F or 2d team to provide a fallback mechanism to have the Chinese characters displayed even a English physical font is specified. ###@###.### 2002-02-04
04-02-2002