I have a JTextArea
where I need to show Bengali text like:
বাংলাদেশ
But all I can see is rectangular boxes. How can
First take a bangla unicode supported font like:
Font banglaFont=new Font("Arial Unicode MS", Font.BOLD,15);
Then attach it to your JTextArea object using setFont
text1.setFont(banglaFont);
Now you should be able to view bangla properly, give a try.
NOTE: Java uses font from the system , so if the system doesn't contain a specific font then you can deploy that font within your application using Font.createFont().