Hi,
I reported to Mr. Stephen Wynne (FAQ-java-linux author)
but does not update yet.

> Please let me know the way to use XIM for entering text in TextField.
> I'd like to enter some 2 byte code character in JAVA TextField class
> using XIM input.
> If you have any information about that, help me please.
> 
Minori TAKAGAKI <[EMAIL PROTECTED]> success to input and display
to TextComponent.

He succeed to input directly by using kinput2(XIM) or by cut&paste
on java application and appletviewer.

His environment is
Slackware-3.4 + PJE-0.1(*1)
Kernel: 2.0.34
libc: 5.4.38
jdk1.1.6-v1-libc5

He said to use japanese charcteres, need to setup below.
1st install Red Hat Motif 2.1 and X-TT(*2)
2nd modify font.properties.ja (to use X-TT fonts)
3rd get liblocale.so
4th modify .java_wrapper
     export LD_PRELOAD=liblocale.so
     export LANG=ja
     export DYN_JAVA=1 (to use libXm.so.2 from RH Motif2.1)
5th appletviewer use always static linked java, if to use appletviewer,
    need to modify $(JAVA_HOME)/bin/i686/green_threads/appletviewer
    (to use dynamic linked java)

X-TT is free X font server for using Japanese TrueType Fonts.
(see http://www.ryukyu.ad.jp/~shin/linux/x-tt/)

but some silly probelms.
1. getText() is O.K. but setText() is NOT well.
2. Mouse drag selection is NOT well. String with japanese charcters
   in TextField/TextArea is NOT selected correctly.
3. when cursor moves in TextField, Japanese charcters is changed oftenly.
4. when japanese charcters input in TextArea, timing to show is very
   strange. But getText() is worked correctly.
   ex) to input 'NIHONNGO abcdef'
   when keyin 'ab' showen 'NI', keyin 'cd' showen 'HONN', ...

hope this helps.

Nozomi Matsumura
[EMAIL PROTECTED]

Reply via email to