i stored some of the words and which are assigned to respective unicodes. for ex:
arasu "\u0C85\u0CA5\u0CB2\u0CC1";
aadalu "\u0C86\u0CA1\u0CB2\u0CC1";
the above words with unicodes are stored in text file. whenever we access the words and unicodes from this text file it has to display words in "kannada" language. first we access the unicode from the text file and we assign that unicode to one string. for example if we accessed the first unicode "\u0C85\u0CA5\u0CB2\u0CC1" from text file by reading it in java program and stored it into string 'str'. now string str is having the unicode "\u0C85\u0CA5\u0CB2\u0CC1". if we pass this string in following code
JFrame frame= new JFrame("TextArea frame");
GraphicsEnvironment.getLocalGraphicsEnvironment();
Font font= new Font("Tunga",Font.PLAIN,40);
JPanel panel=new JPanel();
JTextArea jt=new JTextArea(str);
jt.setFont(font);
frame.add(panel);
panel.add(jt);
frame.setSize(250,200);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
then it has to display the output in kannada language. But now it is not displaying in kannada. it is displaying square boxes. How to resolve this problem. please help us.