JTextArea for inputting Chinese?

M

Murphy Wong

Hi all,

Is there any other class similar to JTextArea available for inputting
Chinese characters? Thanks.

REgards,
Murphy
 
T

Thomas Fritsch

Murphy said:
Hi all,

Is there any other class similar to JTextArea available for inputting
Chinese characters? Thanks.

REgards,
Murphy
As far as I know (and I don't know much here) you use the same Swing and
AWT classes in a Chinese Java environment as you do in an English
environment. The difference is that Java then uses a Chinese input
method for translating from keyboard to text. See "Input Methods
Framework" <http://java.sun.com/j2se/1.4.2/docs/guide/imf/index.html>
for more info.

In the "<JRE_directory>/lib/im" directory of my Java installation I find
2 files: "indicim.jar" and "thaiim.jar" (containing the input methods
for Indic and Thai). I guess a far-east Java installation will have some
more jar files there (for Chinese, Japanese, Korean).
 
O

Oliver Wong

Thomas Fritsch said:
As far as I know (and I don't know much here) you use the same Swing and
AWT classes in a Chinese Java environment as you do in an English
environment. The difference is that Java then uses a Chinese input method
for translating from keyboard to text. See "Input Methods Framework"
<http://java.sun.com/j2se/1.4.2/docs/guide/imf/index.html> for more info.

Also, you don't have to do anything special in the Java code if the
input method is done by the OS (e.g. via Windows XP's IME subsystem). As of
2005, every time I see someone use a Japanese application, they use Windows
XP's built in IME system, rather than an input method system built into the
application.

Back in the 90s, when Windows 3.1 and 95 were the norm, I *did* see
people use input methods built into the application for entering Chinese
text, but I suspect that it's no longer done that way anymore.

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top