Java2 codes,problems ,discussions and solutions are here
Fri Oct 24, 2008 8:41 pm
i want to ask what should i add so that i can print out "chinese
language" when i made a JLabel using java swing?
Fri Oct 24, 2008 8:42 pm
A JLabel displays a String.
A String is a grouping of related characters. In Java, characters are
16-bit snd follow the Unicode standard. Find out what the Unicode
characters are that you want to display, and JLabel should display it.
Also, look at the Javadoc for JLabel at http:/java/sun.com .
If a String / char array is encoded in Chinese unicode, simply using
Java I/O to print the characters will render them in Chinese, assuming
that the proper Chinese language support package is installed in the
computer.
Topic Tags
Java Strings
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.