大家常常说JBuilder在中文系统中存在光标错位的问题都认为这是JBuilder的一个Bug其实这实在是冤枉JBuilder了!大家讨论出来的解决方法无外乎 两种 将编辑器的字体改为宋体用这种方法带来的问题是在宋体下的英文字体实在难看阅读起来不太顺眼 就是将编辑器字体的粗体属性去掉这样也影响代码的可读性其实造成JBuilder光标错位的问题并不是Borland的错误而是Java的宗师——Sun的罪过!大家一定知道in吧?在不同的区域设置中JDK自动调用与之相对应的properties文件而在JDK中Sun所推出的与中文系统相对应的properties文件存在问题在它之中没有区分英文字体的正常粗体和斜体从而导致了以上所说的问题解决的方法很简单只要将这个properties文件修改正确就可以了修改方法如下在jre/lib目录中找到fontpropertieszh文件编辑这个文件并修改成如下内容 # @(#)fontpropertieszh // # # AWT Font default Properties for Chinese Windows # dialogplain=ArialANSI_CHARSET dialogplain=\ubb\ufGB_CHARSET dialogplain=WingDingsSYMBOL_CHARSETNEED_CONVERTED dialogplain=SymbolSYMBOL_CHARSETNEED_CONVERTED dialogbold=Arial BoldANSI_CHARSET dialogbold=\ubb\ufGB_CHARSET dialogbold=WingDingsSYMBOL_CHARSETNEED_CONVERTED dialogbold=SymbolSYMBOL_CHARSETNEED_CONVERTED alic=Arial ItalicANSI_CHARSET alic=\ubb\ufGB_CHARSET alic=WingDingsSYMBOL_CHARSETNEED_CONVERTED alic=SymbolSYMBOL_CHARSETNEED_CONVERTED dialogbolditalic=Arial Bold ItalicANSI_CHARSET dialogbolditalic=\ubb\ufGB_CHARSET dialogbolditalic=WingDingsSYMBOL_CHARSETNEED_CONVERTED dialogbolditalic=SymbolSYMBOL_CHARSETNEED_CONVERTED dialoginputplain=Courier NewANSI_CHARSET dialoginputplain=\ubb\ufGB_CHARSET dialoginputplain=WingDingsSYMBOL_CHARSETNEED_CONVERTED dialoginputplain=SymbolSYMBOL_CHARSETNEED_CONVERTED dialoginputbold=Courier New BoldANSI_CHARSET dialoginputbold=\ubb\ufGB_CHARSET dialoginputbold=WingDingsSYMBOL_CHARSETNEED_CONVERTED dialoginputbold=SymbolSYMBOL_CHARSETNEED_CONVERTED alic=Courier New ItalicANSI_CHARSET alic=\ubb\ufGB_CHARSET alic=WingDingsSYMBOL_CHARSETNEED_CONVERTED alic=SymbolSYMBOL_CHARSETNEED_CONVERTED dialoginputbolditalic=Courier New Bold ItalicANSI_CHARSET dialoginputbolditalic=\ubb\ufGB_CHARSET dialoginputbolditalic=WingDingsSYMBOL_CHARSETNEED_CONVERTED dialoginputbolditalic=SymbolSYMBOL_CHARSETNEED_CONVERTED serifplain=Times New RomanANSI_CHARSET serifplain=\ubb\ufGB_CHARSET serifplain=WingDingsSYMBOL_CHARSETNEED_CONVERTED serifplain=SymbolSYMBOL_CHARSETNEED_CONVERTED serifbold=Times New Roman BoldANSI_CHARSET serifbold=\ubb\ufGB_CHARSET serifbold=WingDingsSYMBOL_CHARSETNEED_CONVERTED serifbold=SymbolSYMBOL_CHARSETNEED_CONVERTED alic=Times New Roman ItalicANSI_CHARSET alic=\ubb\ufGB_CHARSET alic=WingDingsSYMBOL_CHARSETNEED_CONVERTED alic=SymbolSYMBOL_CHARSETNEED_CONVERTED serifbolditalic=Times New Roman Bold ItalicANSI_CHARSET serifbolditalic=\ubb\ufGB_CHARSET serifbolditalic=WingDingsSYMBOL_CHARSETNEED_CONVERTED serifbolditalic=SymbolSYMBOL_CHARSETNEED_CONVERTED sansserifplain=ArialANSI_CHARSET sansserifplain=\ubb\ufGB_CHARSET sansserifplain=WingDingsSYMBOL_CHARSETNEED_CONVERTED sansserifplain=SymbolSYMBOL_CHARSETNEED_CONVERTED sansserifbold=Arial BoldANSI_CHARSET sansserifbold=\ubb\ufGB_CHARSET sansserifbold=WingDingsSYMBOL_CHARSETNEED_CONVERTED sansserifbold=SymbolSYMBOL_CHARSETNEED_CONVERTED alic=Arial ItalicANSI_CHARSET alic=\ubb\ufGB_CHARSET alic=WingDingsSYMBOL_CHARSETNEED_CONVERTED alic=SymbolSYMBOL_CHARSETNEED_CONVERTED sansserifbolditalic=Arial Bold ItalicANSI_CHARSET sansserifbolditalic=\ubb\ufGB_CHARSET sansserifbolditalic=WingDingsSYMBOL_CHARSETNEED_CONVERTED sansserifbolditalic=SymbolSYMBOL_CHARSETNEED_CONVERTED monospacedplain=Courier NewGB_CHARSET monospacedplain=\ubb\ufGB_CHARSET monospacedplain=WingDingsSYMBOL_CHARSETNEED_CONVERTED monospacedplain=SymbolSYMBOL_CHARSETNEED_CONVERTED monospacedbold=Courier New BoldGB_CHARSET monospacedbold=\ubb\ufGB_CHARSET monospacedbold=WingDingsSYMBOL_CHARSETNEED_CONVERTED monospacedbold=SymbolSYMBOL_CHARSETNEED_CONVERTED alic=Courier New ItalicGB_CHARSET alic=\ubb\ufGB_CHARSET alic=WingDingsSYMBOL_CHARSETNEED_CONVERTED alic=SymbolSYMBOL_CHARSETNEED_CONVERTED monospacedbolditalic=Courier New Bold ItalicGB_CHARSET monospacedbolditalic=\ubb\ufGB_CHARSET monospacedbolditalic=WingDingsSYMBOL_CHARSETNEED_CONVERTED monospacedbolditalic=SymbolSYMBOL_CHARSETNEED_CONVERTED # name aliases # #aliastimesroman=serif #aliashelvetica=sansserif #urier=monospaced # for backward compatibility #timesroman=Times New RomanANSI_CHARSET #helvetica=ArialANSI_CHARSET #courier=Courier NewANSI_CHARSET zapfdingbats=WingDingsSYMBOL_CHARSET # font filenames for reduced initialization time # filename\ubb\uf=SIMSUNTTF filenameArial=ARIALTTF filenameArial_Bold=ARIALBDTTF filenameArial_Italic=ARIALITTF filenameArial_Bold_Italic=ARIALBITTF filenameCourier_New=COURTTF filenameCourier_New_Bold=COURBDTTF filenameCourier_New_Italic=COURITTF filenameCourier_New_Bold_Italic=COURBITTF filenameTimes_New_Roman=TIMESTTF filenameTimes_New_Roman_Bold=TIMESBDTTF filenameTimes_New_Roman_Italic=TIMESITTF filenameTimes_New_Roman_Bold_Italic=TIMESBITTF filenameWingDings=WINGDINGTTF filenameSymbol=SYMBOLTTF # Default font definition # defaultchar= # Static FontCharset info # #fontcharsetdialog=sunioCharToByteCp fontcharsetdialog=sunioCharToByteGBK fontcharsetdialog=sunawtwindowsCharToByteWingDings fontcharsetdialog=sunawtCharToByteSymbol #fontcharsetdialoginput=sunioCharToByteCp fontcharsetdialoginput=sunioCharToByteGBK fontcharsetdialoginput=sunawtwindowsCharToByteWingDings fontcharsetdialoginput=sunawtCharToByteSymbol #fontcharsetserif=sunioCharToByteCp fontcharsetserif=sunioCharToByteGBK fontcharsetserif=sunawtwindowsCharToByteWingDings fontcharsetserif=sunawtCharToByteSymbol #fontcharsetsansserif=sunioCharToByteCp fontcharsetsansserif=sunioCharToByteGBK fontcharsetsansserif=sunawtwindowsCharToByteWingDings fontcharsetsansserif=sunawtCharToByteSymb |