问题描述
我有一个简单的秋千应用程序。当我将泰语文字设置为JLabel或其他组件时,它们会显示像字符一样的问号,而不是泰语文字。
在swing应用程序中,有什么方法可以支持泰语吗? ?
没有特殊的功能或配置。
确保您的字体支持泰语字符。
当我遇到相同的问题时,组件字体设置为calibri。
将其更改为sansserif后可以使用。
但是我不知道其他支持Thai的字体,我只是通过蛮力尝试才发现它。 / p>
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?
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.
这篇关于摇摆组件不显示泰语字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!