韩文字符在 JTextField 上显示为空框
Korean characters are displayed as empty boxes on JTextField
JTextfield
无法正确显示韩文字符。它显示空框而不是字符。这是我的应用程序的屏幕截图。
那是因为您使用的字体。
根据这个 oracle document Lucida 字体不支持韩文字母。
Note that of the writing systems that are generally fully supported by
the JRE, the Lucida fonts do not support Chinese (Simplified), Chinese
(Traditional), Japanese, and Korean.
因此,如果您使用支持韩语的字体,它将正常工作。
JTextfield
无法正确显示韩文字符。它显示空框而不是字符。这是我的应用程序的屏幕截图。
那是因为您使用的字体。
根据这个 oracle document Lucida 字体不支持韩文字母。
Note that of the writing systems that are generally fully supported by the JRE, the Lucida fonts do not support Chinese (Simplified), Chinese (Traditional), Japanese, and Korean.
因此,如果您使用支持韩语的字体,它将正常工作。