用java实体显示日语字符很困难
由于某种原因,当我的标题栏中有以 java 内容为主题的日文字符时,我无法显示它们。 相反,它显示为正方形。 如果我没有实质主题,我可以在标题栏中看到日语字符。 我已经找到了在程序的所有其他部分(标题栏除外)显示这些字符的方法。 为此我该怎么做呢?
For some reason, when I have japanese characters in the title bar that is themed with java substance, I am not able to display them. Instead it shows as squares. If I have no substance theme, I can see the japanese characters in the title bar just fine. I have found ways to show these characters in all other parts of my program except for the title bar. How do I do it for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
标题栏需要使用支持日语字符的字体。 这通常由窗口管理器(例如 MS Windows 中内置的窗口管理器)控制。
可以在其他程序的标题栏中显示日语字符吗?
The title bar needs to be in a font which supports Japanese characters. This is usually controlled by the window manager such as the one built in to MS Windows.
Can you display Japanese characters in the title bar of other programs?
这只是一个盲目的尝试,但尝试设置这个 属性:
JFrame.setDefaultLookAndFeelDecolated(false)
This is just a shot in the dark, but try setting this property before you draw your first JFrame:
JFrame.setDefaultLookAndFeelDecorated(false)