Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

awt alignment issue with japanese character  RSS feed

 
Ruhul Mazumder
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using japesenes OS(Win XP ) and running awt application (JDK1.6).
For Choice box (dropdown box) ,if the font is less than 15 and if there
is a mixture of japanese and number ,the numbers and the Japanese characters
are not vertically aligned.

I am using java.awt.Choice component to display all the months
Choice month =new Choice();
month.insert ("1 \u6708", 0);
month.insert ("2 \u6708", 1);
month.insert ("3 \u6708", 2); .. so on

While running the applet , in display window
The numbers and the Japanese characters are not vertically aligned.
When a month is selected, it is slightly truncated at the top.

My default font is [family=SansSerif,name=sansserif,style=plain,size=12]
when i change the font to 15,the characters are properly aligned.

Did anyone faced this before? if so can you please clarify why this behaviour when font size
is less than 15 or how to resolve this issue without changing the font size .

thanks in advance,
ruhul
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!