Topic: Display chinese character with Swing under English win2k |
Print this page |
1.Display chinese character with Swing under English win2k | Copy to clipboard |
Posted by: Julian13 Posted on: 2003-05-13 13:39 found that most of the I18N question oriented with web page display. this work fine for me too. however, i'm facing the problem to display those chinese character under english win2k. those character retrieved from DB become "?" even i used the following: jtextfield.setText(new String( result.get(1).toBytes(), "Big5")); i wonder whether i'm doing the wrong way in tranlating the result string or i need to do sth over Swing to let her display correct chinese font. BTW, my environment is: Win2K, JDK1.3.X MSAccess -- JDBC-ODBC (from Sun) -- Swing thx. |
2.Re:Display chinese character with Swing under English win2k [Re: Julian13] | Copy to clipboard |
Posted by: yakuu Posted on: 2003-05-13 23:05 need chinese font support... search for more detail. |
3.Re:Display chinese character with Swing under English win2k [Re: yakuu] | Copy to clipboard |
Posted by: Julian13 Posted on: 2003-05-13 23:35 yakuu wrote: thx. start search from google right now. i just knew that i must set the font explicitly for the JVM BTW, any good reference suggested? i found that the major idea is to do the bytes<-->string convertion + setting font properties for JavaRunTime. am i on the right track? thx. |
4.Re:Display chinese character with Swing under English win2k [Re: Julian13] | Copy to clipboard |
Posted by: yakuu Posted on: 2003-05-14 08:56 1.import your simsun font to Win2K. 2.follow your step. |
5.Re:Display chinese character with Swing under English win2k [Re: Julian13] | Copy to clipboard |
Posted by: floater Posted on: 2003-05-14 09:04 http://www.cjsdn.com/post/view?bid=1&id=11078&sty=3&keywords=swing+chinese+char |
6.Re:Display chinese character with Swing under English win2k [Re: Julian13] | Copy to clipboard |
Posted by: Julian13 Posted on: 2003-05-14 23:09 big thx to all of you! very valuable reference ^.^ BTW, i have found these chinese input method for JDK1.3.x while search about the chinese character stuff. hope these resource useful to you as well. http://users.erols.com/eepeter/chinesecomputing/programming/java.html#input |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |