2

I am working on java application where I have a JTextArea in which I want the user to input in Punjabi language.

At the backend, how does Java store that language and also could someone please make a small program illustrating that?

jackrabbit
  • 5,525
  • 1
  • 27
  • 38
Gurjit
  • 564
  • 1
  • 9
  • 19

1 Answers1

2

You can setFont to JTextArea. You must install a Font in your system

JTextArea t=new JTextArea();
Font f=new Font("Shivaji02", Font.PLAINs, 10);
t.setFont(f);

enter image description here

takendarkk
  • 3,347
  • 8
  • 25
  • 37
Benjamin
  • 2,257
  • 1
  • 15
  • 24
  • No I don't think thats enough at the backend i would like the input strings unicode to be stores..!! Only chaning font wouldnot do that..!! – Gurjit Feb 22 '14 at 07:58