Solutions for JBuilder cursor problems

Source: Internet
Author: User

We often say jbuilder in the Chinese system has the problem of the cursor dislocation, all think that this is a jbuilder bug, in fact, this is really wrong jbuilder! There are two solutions to this discussion:

1, the editor of the font to the song, the problem with this method is that the English font in the song is really ugly, reading up not very pleasing to the eye;

2, is to remove the font of the editor bold attributes, which also affect the readability of the code.

In fact, caused JBuilder cursor dislocation is not Borland error, but the master of the Java--sun sin! Everyone must know i18n, right? In the different locales, JDK automatically invokes the corresponding properties file, and in the JDK, Sun's version of the Chinese system with the corresponding properties of the problem, there is no distinction between the English font of the normal, bold and italic, resulting in the above mentioned problems , the solution is very simple, as long as the properties of this file can be modified correctly, the modified method is as follows:

Locate the Font.properties.zh file in the Jre/lib directory, edit the file and modify it as follows:

# @ (#) font.properties.zh1.16 00/10/06


#


# AWT Font default Properties for Chinese Windows


#


Dialog.plain.0=arial,ansi_charset


Dialog.plain.1=\u5b8b\u4f53,gb2312_charset


dialog.plain.2=wingdings,symbol_charset,need_converted


dialog.plain.3=symbol,symbol_charset,need_converted


dialog.bold.0=arial Bold,ansi_charset


Dialog.bold.1=\u5b8b\u4f53,gb2312_charset


dialog.bold.2=wingdings,symbol_charset,need_converted


dialog.bold.3=symbol,symbol_charset,need_converted


dialog.italic.0=arial Italic,ansi_charset


Dialog.italic.1=\u5b8b\u4f53,gb2312_charset


dialog.italic.2=wingdings,symbol_charset,need_converted


dialog.italic.3=symbol,symbol_charset,need_converted


dialog.bolditalic.0=arial Bold Italic,ansi_charset


Dialog.bolditalic.1=\u5b8b\u4f53,gb2312_charset


dialog.bolditalic.2=wingdings,symbol_charset,need_converted


dialog.bolditalic.3=symbol,symbol_charset,need_converted


Dialoginput.plain.0=courier New,ansi_charset


Dialoginput.plain.1=\u5b8b\u4f53,gb2312_charset


dialoginput.plain.2=wingdings,symbol_charset,need_converted


dialoginput.plain.3=symbol,symbol_charset,need_converted


Dialoginput.bold.0=courier New Bold,ansi_charset


Dialoginput.bold.1=\u5b8b\u4f53,gb2312_charset


dialoginput.bold.2=wingdings,symbol_charset,need_converted


dialoginput.bold.3=symbol,symbol_charset,need_converted


dialoginput.italic.0=courier New Italic,ansi_charset


Dialoginput.italic.1=\u5b8b\u4f53,gb2312_charset


dialoginput.italic.2=wingdings,symbol_charset,need_converted


dialoginput.italic.3=symbol,symbol_charset,need_converted


dialoginput.bolditalic.0=courier New Bold italic,ansi_charset


Dialoginput.bolditalic.1=\u5b8b\u4f53,gb2312_charset


dialoginput.bolditalic.2=wingdings,symbol_charset,need_converted


dialoginput.bolditalic.3=symbol,symbol_charset,need_converted


serif.plain.0=times New Roman,ansi_charset


Serif.plain.1=\u5b8b\u4f53,gb2312_charset


Serif.plain.2=wingdings,symbol_charset,need_converted


serif.plain.3=symbol,symbol_charset,need_converted


serif.bold.0=times New Roman bold,ansi_charset


Serif.bold.1=\u5b8b\u4f53,gb2312_charset


serif.bold.2=wingdings,symbol_charset,need_converted


serif.bold.3=symbol,symbol_charset,need_converted


serif.italic.0=times New Roman italic,ansi_charset


Serif.italic.1=\u5b8b\u4f53,gb2312_charset


serif.italic.2=wingdings,symbol_charset,need_converted


serif.italic.3=symbol,symbol_charset,need_converted


serif.bolditalic.0=times New Roman Bold italic,ansi_charset


Serif.bolditalic.1=\u5b8b\u4f53,gb2312_charset


serif.bolditalic.2=wingdings,symbol_charset,need_converted


serif.bolditalic.3=symbol,symbol_charset,need_converted


Sansserif.plain.0=arial,ansi_charset


Sansserif.plain.1=\u5b8b\u4f53,gb2312_charset


sansserif.plain.2=wingdings,symbol_charset,need_converted


sansserif.plain.3=symbol,symbol_charset,need_converted


sansserif.bold.0=arial Bold,ansi_charset


Sansserif.bold.1=\u5b8b\u4f53,gb2312_charset


sansserif.bold.2=wingdings,symbol_charset,need_converted


sansserif.bold.3=symbol,symbol_charset,need_converted


sansserif.italic.0=arial Italic,ansi_charset


Sansserif.italic.1=\u5b8b\u4f53,gb2312_charset


sansserif.italic.2=wingdings,symbol_charset,need_converted


sansserif.italic.3=symbol,symbol_charset,need_converted


sansserif.bolditalic.0=arial Bold Italic,ansi_charset


Sansserif.bolditalic.1=\u5b8b\u4f53,gb2312_charset


sansserif.bolditalic.2=wingdings,symbol_charset,need_converted


Sansserif.bolditalic.3=symbol,symbol_charset,need_converted


Monospaced.plain.0=courier New,gb2312_charset


Monospaced.plain.1=\u5b8b\u4f53,gb2312_charset


monospaced.plain.2=wingdings,symbol_charset,need_converted


monospaced.plain.3=symbol,symbol_charset,need_converted


monospaced.bold.0=courier New Bold,gb2312_charset


Monospaced.bold.1=\u5b8b\u4f53,gb2312_charset


monospaced.bold.2=wingdings,symbol_charset,need_converted


monospaced.bold.3=symbol,symbol_charset,need_converted


monospaced.italic.0=courier New Italic,gb2312_charset


Monospaced.italic.1=\u5b8b\u4f53,gb2312_charset


monospaced.italic.2=wingdings,symbol_charset,need_converted


monospaced.italic.3=symbol,symbol_charset,need_converted


monospaced.bolditalic.0=courier New Bold italic,gb2312_charset


Monospaced.bolditalic.1=\u5b8b\u4f53,gb2312_charset


monospaced.bolditalic.2=wingdings,symbol_charset,need_converted


monospaced.bolditalic.3=symbol,symbol_charset,need_converted


# Name Aliases


#


#alias. Timesroman=serif


#alias. Helvetica=sansserif


#alias. courier=monospaced


# for backward compatibility


#timesroman. 0=times New roman,ansi_charset


#helvetica. 0=arial,ansi_charset


#courier. 0=courier new,ansi_charset


Zapfdingbats.0=wingdings,symbol_charset


# font filenames for reduced initialization time


#


Filename.\u5b8b\u4f53=simsun. TTF


filename. Arial=arial. TTF


filename. ARIAL_BOLD=ARIALBD. TTF


filename. Arial_italic=ariali. TTF


filename. Arial_bold_italic=arialbi. TTF


FileName. Courier_new=cour. TTF


filename. COURIER_NEW_BOLD=COURBD. TTF


filename. Courier_new_italic=couri. TTF


filename. Courier_new_bold_italic=courbi. TTF


filename. Times_new_roman=times. TTF


filename. TIMES_NEW_ROMAN_BOLD=TIMESBD. TTF


filename. Times_new_roman_italic=timesi. TTF


filename. Times_new_roman_bold_italic=timesbi. TTF


filename. Wingdings=wingding. TTF


filename. Symbol=symbol. TTF


# Default Font definition


#


default.char=2751


# Static Fontcharset info.


#


#fontcharset. dialog.0=sun.io.chartobytecp1252


FONTCHARSET.DIALOG.1=SUN.IO.CHARTOBYTEGBK


fontcharset.dialog.2=sun.awt.windows.chartobytewingdings


Fontcharset.dialog.3=sun.awt.chartobytesymbol


#fontcharset. dialoginput.0=sun.io.chartobytecp1252


FONTCHARSET.DIALOGINPUT.1=SUN.IO.CHARTOBYTEGBK


fontcharset.dialoginput.2=sun.awt.windows.chartobytewingdings


Fontcharset.dialoginput.3=sun.awt.chartobytesymbol


#fontcharset. serif.0=sun.io.chartobytecp1252


FONTCHARSET.SERIF.1=SUN.IO.CHARTOBYTEGBK


fontcharset.serif.2=sun.awt.windows.chartobytewingdings


Fontcharset.serif.3=sun.awt.chartobytesymbol


#fontcharset. sansserif.0=sun.io.chartobytecp1252


FONTCHARSET.SANSSERIF.1=SUN.IO.CHARTOBYTEGBK


fontcharset.sansserif.2=sun.awt.windows.chartobytewingdings


Fontcharset.sansserif.3=sun.awt.chartobytesymbol


#fontcharset. monospaced.0=sun.io.chartobytecp1252


FONTCHARSET.MONOSPACED.1=SUN.IO.CHARTOBYTEGBK


fontcharset.monospaced.2=sun.awt.windows.chartobytewingdings


Fontcharset.monospaced.3=sun.awt.chartobytesymbol


# exclusion Range info.


#


exclusion.dialog.plain.0=00a0-f8ff


exclusion.dialog.italic.0=00a0-f8ff


exclusion.dialog.bold.0=00a0-f8ff


exclusion.dialog.bolditalic.0=00a0-f8ff


exclusion.dialoginput.plain.0=00a0-f8ff


exclusion.dialoginput.italic.0=00a0-f8ff


exclusion.dialoginput.bold.0=00a0-f8ff


exclusion.dialoginput.bolditalic.0=00a0-f8ff


exclusion.serif.plain.0=00a0-f8ff


exclusion.serif.italic.0=00a0-f8ff


exclusion.serif.bold.0=00a0-f8ff


exclusion.serif.bolditalic.0=00a0-f8ff


exclusion.sansserif.plain.0=00a0-f8ff


exclusion.sansserif.italic.0=00a0-f8ff


exclusion.sansserif.bold.0=00a0-f8ff


exclusion.sansserif.bolditalic.0=00a0-f8ff


exclusion.monospaced.italic.0=00a0-f8ff


EXCLUSION.MONOSPACED.BOLD.0=00A0-F8FF


exclusion.monospaced.bolditalic.0=00a0-f8ff


# CharSet for text input


# Inputtextcharset=gb2312_charset

After saving, all the problems will be solved!

This method also applies to any problem of the same kind.

[digression] This kind of mistake Sun really should have a good introspection, hope that they can do something better in the future.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.