Swing components does not show thai characters

China☆狼群 提交于 2019-12-10 15:16:54

问题


I have a simple swing application. When i set a thai text to a JLabel or other components they shows question mark like characters instead of thai text.

Is there anything to do to support thai language in swing applications?


回答1:


There is not a special function or configuration to do. Be sure that your font supports thai characters.

When i met same problem, component font was set to calibri. After changing it to sansserif it worked.

But i don't know any other font that supports thai, i just found it with brute force tries.



来源:https://stackoverflow.com/questions/31515674/swing-components-does-not-show-thai-characters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!