> Has anyone adjusted fonts.properties under i18n for Chinese/Japanese/Korean
> support on Linux/XFree86? For example, fonts.properties.ja looks like it's
> still the Solaris/CDE version to me.
I tried many cases, but I cannot show japanese charcter
in TextField and/or TextArea.
i.e. \u3042 is converted to \u0042 in TextArea/TextField.

other components are OK (list, label, etc)
only TextArea/TextField are NG.

my environment is
libc 5.4.44 & jdk1.1.5v7 & kernel 2.0.33, installed from slakware.

if anyone success to show japanese charcters in TextArea,
please teach me your howto.

thanks.

--- cut here ---
import java.io.*;
import java.lang.*;
import java.awt.*;

public class CJK extends java.applet.Applet {
  public void init () {
        String s = new String ("\u3042\u3044\u3046\u3048\u304A");
        // japanese a i u e o
        setLayout (new BorderLayout ());
        TextArea out = new TextArea (12, 60);
        Label l = new Label (s);
        add ("Center", out); //BDFHJ
        add ("South", l);    //this is shown correctly.
        out.append (s);      
        System.out.println (s); //this line is OK too.
  }
}

Reply via email to