Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Additional Alphabet

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?



Re: Additional Alphabet

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.

Post a reply

Topic Tags

Java Strings