Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot able to type Telugu charecters in JTextField.

Status
Not open for further replies.

swaroop

Programmer
Feb 4, 2001
100
0
0
US
Hi All,

I am creating a notepad which is capable of taking telugu charectors as input, save and display again when ever opened. I can able to display unicode as telugu charectors but when I type in JTextField they are displayed as boxes. Please helo me in my java program and let me know what are the steps I have to follow.


Thanks,

Regards,

Swaroop, Kunduru
 
Thanks for the reply stefanwagner,


On JTextField or any TextEditor component, I use setFont method and use gautami font. See the piece of code.


textfield = new JTextField("\u0c13\u0c21\u0c32\u0c41");
textfield.setFont(new Font("gautami", Font.ITALIC, 16));

It displayes as shown below.

gautami is windows font so displays on windows.
Please see the link for Telugu chars.

Now as and when I type I wanted to see telugu charectors on the textField.

I wanted to map the key board is my first Task. I can do it by adding KeyBoard event but I wanted to see the char on the application.

Regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top