2014年1月7日星期二

java gui rare characters displayed in the input frame

The current program input uncommon words , such as ying ( Anna ) of the word , it will appear as a frame
should ask what font to display properly set , the default is Arial
In addition , if you need to download the font package can.
------ Solution - -------------------------------------------
landlord is not used the components
------ For reference only awt package under -------------------------------- -------

Yes, used under awt , is to use the swing under it?
Can tell the next method .
------ For reference only ---------------------------------------

awt under there will be such a problem in the Chinese support, can be used
------ For reference only swing under ------------------- -------------------- in support of Chinese

awt occur under such a problem , you can use the swing under the  
If you do not swing down , then there can be any way around this? Because the program will be great changes , more trouble
------ For reference only ----------------------------- ---------- support of the Chinese

awt occur under such a problem , you can use the swing under the  
which class or how to use the swing , can give a DEMO
------ For reference only -------------------- -------------------

into swing changes will not be great at the beginning of each component is to add a J, and if you want to support follow awt Chinese very troublesome
------ For reference only ----------------------------------- ----
it otherwise would have been better with a swing after that there will be similar problems will be more troublesome
------ For reference only ----- ----------------------------------

with awt then how to set Font to make this characters display correctly , I tried simsun, dialog and so can not
Do you know which fonts can be set to what
------ For reference only -------------------------- -------------

into swing changes will not be great at the beginning of each component is to add a J, and if you want to support the Chinese follow awt very troublesome  
I have read, it seems that with the swing, but set the Font to Arial, this will not affect
In addition , said the Internet has changed font.properties of this document, but I do not know what should change the font suitable
------ For reference only ------------- --------------------------

into swing changes will not have much of each component is added at the beginning of a J if you want to support the Chinese follow awt very troublesome          
I have read, it seems that with the swing, but set the Font to Arial, this will not affect   
In addition , said the Internet has changed font.properties of this document, but I do not know which font should change the appropriate  
with the support of the Chinese swing itself does not need to change any thing , awt , then you must be a Chinese gbk your java class files must be encoded in order to display properly gbk , but are generally used utf-8 so do not use awt with swing

没有评论:

发表评论