views:

400

answers:

2

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?

A: 

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?

Peter Lawrey
Yes I am able to with using a title on a regular JLabel. The issue is when you factor in java substance. Java substance overrides what you have for the title bar font for Windows XP. It overrides it to a font that is not able to display the japanese characters.
baseballtank13
In that case can you override the code which is overriding the font?
Thorbjørn Ravn Andersen
I am not sure if I am able to. I do not know a way to do this, which is the problem.
baseballtank13
A: 

This is just a shot in the dark, but try setting this property before you draw your first JFrame:

JFrame.setDefaultLookAndFeelDecorated(false)

Mike Sickler