When I write something like this:
...
JFrame myFrame = new JFrame();
...
myFrame.setTitle("\t\t myApp");
I get the result below in the JFrame title:

It just happens in Windows XP and works fine in Leopard OS. Is there any way to fix it?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As Andrew has already pointed, you should not be doing this. Essentially Windows went to the font’s character dictionary to find out how best to render “\t” and printed that wonderful square for you instead, cause that’s all it knew how to do.
The title is not a “text component”, it’s a rendered element, and thus, doesn’t handle formatting of this nature…
Follow Andrew’s advice