i want to type sinhala words in swing textfileds , but they dont appear correctly in java , same text in notepad shows correct word. how can i fix this ?

notepad:

2.JPG

java :

1.JPG