Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

How can I Read Farsi in TextField and write Farsi in Label with out problem?

  Asked By: Kiswar    Date: Oct 11    Category: Java    Views: 1370
  

I'm Ali Ashrafzadeh From IRAN Isfahan And I'm New Member in your
Group.

I'm beginer In java and write a fasri chat applet.this Applet must
can read and write in farsi .

I use a TextField For Read input And make a new List Box for
output,in textfield I Handel keypress event in textfield for reading
String in Farsi.
this applet run corectly in win 98 farsi/arabic.it also run in Win 2k
is farsi language installed. but I never can use it in XP.
I try set "Tahoma" font for textfield but java dont applay this font
to textfield and use defualt font.

now I have tow question:

1. How can I Read Farsi in TextField and write Farsi in Label with
out problem?

2. How can I set a font for TextField.

about 2.(I Use JB6 Personal.In listbox of font JB6 is only show me
Dialog
ScanSerif
Serif
Monospaced
DialogInput
font's however Tahoma and other font install in my windows

than's and sorry for my bad grammer.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Faith Hughes     Answered On: Oct 11

Actually I don't know the exact anwsers of your questions,but I 'm here to tell you some points about:

The first point is that you should know that java  use its own fonts which comes with your jdk .I am not sure but it seems that you should add some fonts to your jre.

The second point is that there are good Internationalization mechanisims in J2SE version 1.4 that you didn't have them in previous versions, so try to use the lastest documents from java.sun.com.I think the onley option is to use these documents online.Jb6 by default use J2SE 1.3.1 ,however you can configure it to use J2SE 1.4

 
Answer #2    Answered By: Dinh Tran     Answered On: Oct 11

but I Think I can't use J2SE version 1.4 because it need install
plugin on client side.

is it correct?

 




Tagged: