java - JLabel text is garbled -
i'm seeing strange issue involving jlabel
used display range of numbers. text of label typically 0.0 - 100.0 (for example). problem select few users, text appears garbled. in example, text show /-/,0//-/.
here's know far:
- it appears sort of off-by-one bug since each character displayed 1 unicode character behind expected character.
- the dash character between 2 numbers hard-coded in application string literal.
- it's happening on various versions of oracle jvms including 1.6.x , 1.7.x.
- it's happening on few select windows 7 machines.
what cause type of problem? else should investigate? thanks.
this happens when you're setting font of jlabel
font corrupted in windows font cache.
to rebuild cache: administrator, delete file , reboot pc:
del %windir%\system32\fntcache.dat
Comments
Post a Comment