Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to beautify the interface and set the font of NetBeans 6.5

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces how to beautify the interface and set the font of NetBeans 6.5. the content is very detailed. Interested friends can use it for reference. I hope it can help you.

Open the netbeans.conf file in the C:\ Program Files\ NetBeans 6.5\ etc\ directory and find:

# Options used by NetBeans launcher by default, can be overridden by explicit

# command line switches:

Netbeans_default_options=. Add-fontsize 12-laf javax.swing.plaf.metal.MetalLookAndFeel to the parameter string of netbeans_default_options. It looks like:

# Options used by NetBeans launcher by default, can be overridden by explicit

# command line switches:

Netbeans_default_options= "- J-client-J-Xverify:none-J-Xss2m-J-Xms32m

-J-XX:PermSize=32m-J-XX:MaxPermSize=200m

-J-Dapple.laf.useScreenMenuBar=true-J-Dsun.java2d.noddraw=false

-- fontsize 12-- laf javax.swing.plaf.metal.MetalLookAndFeel "--fontsize 12 is to change the interface font to 12:00 size, which is exactly in line with the requirements for Chinese display.-laf javax.swing.plaf.metal.MetalLookAndFeel is an interface theme that requires NetBeans to use non-operating system native interface themes. However, this depends on personal habits. If you don't like it, you can add this part to the command line parameters.

Modify Java font configuration

Open the C:\ Program Files\ Java\ jdk1.6.0_10\ jre\ lib directory and rename or delete the fontconfig.98.bfc and fontconfig.98.properties.src files.

Then make a copy of the fontconfig.properties.src as fontconfig.properties and open the fontconfig.properties file with a text editor.

The purpose of modifying the font configuration file is to allow the Java program to use different fonts when displaying Chinese and English. For example, a piece of code:

/ * * render the result through the control view * * the corresponding control view file is view/_controls/footer_control.php. * / $this- > _ renderBlock ('footer', $return)

The Chinese part uses Song style, while the English part uses Consolas. The display effect is as follows:

To achieve this effect, you need to make three changes to the font file. They are:

Font file name definition: determines the correspondence between font name and font file name

The correspondence between the virtual font and the actual font: determine which actual font is used to display the virtual font

Search order for fonts when displaying characters: determine which font to use when displaying characters

The font file name is in the following format. You can define your favorite font as needed, but you cannot use a Chinese font name.

# filename. Font name = font file name filename.Consolas=CONSOLA.TTFfilename.Consolas_Bold=CONSOLAB.TTFfilename.Consolas_Italic=CONSOLAI.TTFfilename.Consolas_Bold_Italic=CONSOLAZ.TTF

Once the font name is defined, you can specify the correspondence between the virtual font and the actual font.

For example, I point the default monospaced virtual font to the Consolas font just defined, and modify the settings as follows:

Change monospaced.plain.alphabetic=Courier Newmonospaced.bold.alphabetic=Courier New Boldmonospaced.italic.alphabetic=Courier New Italicmonospaced.bolditalic.alphabetic=Courier New Bold Italic# to monospaced.plain.alphabetic=Consolasmonospaced.bold.alphabetic=Consolas Boldmonospaced.italic.alphabetic=Consolas Italicmonospaced.bolditalic.alphabetic=Consolas Bold Ttalic

*, modify the font search order. After modification, you will first look for English fonts, and then look for Chinese fonts. Because there are no Chinese glyphs in English fonts, it realizes the effect that English and Chinese are displayed in different fonts.

Sequence.monospaced.GBK=chinese-ms936,alphabetic,dingbats,symbolsequence.monospaced.GB18030=chinese-gb18030,alphabetic,dingbats,symbol# changed to sequence.monospaced.GBK=alphabetic,chinese-ms936,dingbats,symbolsequence.monospaced.GB18030=alphabetic,chinese-gb18030,dingbats,symbol on how to NetBeans 6.5 interface beautification and font settings to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report