Total members 11890 |It is currently Sat Apr 20, 2024 3:18 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





i want to ask what should i add so that i can print out "chinese
language" when i made a JLabel using java swing?




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

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.

_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 




Topic Tags

Java Strings
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
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