摇摆组件不显示泰语字符 [英] Swing components does not show thai characters

查看:71
本文介绍了摇摆组件不显示泰语字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的秋千应用程序。当我将泰语文字设置为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.

这篇关于摇摆组件不显示泰语字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆