熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

Jbuilder的光標問題

2022-06-13   來源: JSP教程 

  大家常常說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
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19525.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.