How to show Bengali text properly
fonts, java, jtextarea, jtextfield, swing
Solution
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().
Problem
I have a `JTextArea` where I need to show Bengali text like: বাংলাদেশ But all I can see is rectangular boxes. How can I show Bengali characters properly?