• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to create Swing component with Chinese & Japanese

 
chao zhang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does any one have sample code on how to create, such as JLabel, with chinese or japanese on it?
Thanks a lot
 
felipe elduro
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JLabel can suport HTML, wich can suport:
<code>
<html><font face="MS Mincho" size=2>〺</font>
</code>
that way you can easily write in virtually any language supoprted by the unicode standard
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch Felipe.
Please read ournaming policy and change your displayed name to comply with it.
Thank you in advance!
 
chao zhang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks felipe elduro . But my problem is that i can't display chinese or japanese character correct on the UI, not on the HTML page.
Anyways, thank you for replying me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!