Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unicode in JTextField



Dmitry Markman wrote:
|I need to show some unicode characters in JTextField, for example
|\u2500 ()
|
|which font I have to use? (or may be I need to do more than just
|setting the appropriate font to text component?)

This was enough for me:

field.setFont(Font.decode("AppleGothic"));

Take a look at the Character Palette (hidden under a popup in the Font panel); it can tell you which fonts contain which Unicode characters.

Glen Fisher
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >unicode in JTextField (From: Dmitry Markman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.