Because of the use of swing for development in NetBeans, the fonts in the interface are also configured by the Java virtual machine rather than with the operating system. The default font size is 11px after the installation of NetBeans. In the case of Windows, the minimum support for the song body is 12px. So the font is 11px can not be fully displayed.
The simple solution is to change the font size a bit. The detailed approach is to open the etc\netbeans.conf file under the NetBeans installation directory. In:
Netbeans_default_options= "-j-client-j-xss2m-j-xms32m-j-xx:permsize=128m-j-xx:maxpermsize=200m- J-dnetbeans.logger.console=true-j-ea-j-dapple.laf.usescreenmenubar=true-j-dsun.java2d.noddraw=true "
Add--fontsize 12 before the last quote for this line. That becomes:
Netbeans_default_options= "-j-client-j-xss2m-j-xms32m-j-xx:permsize=128m-j-xx:maxpermsize=200m- J-dnetbeans.logger.console=true-j-ea-j-dapple.laf.usescreenmenubar=true-j-dsun.java2d.noddraw=true--fontsize 12 "
When you restart NetBeans this time, you will find that you have become a normal size, not so ugly.
NetBeans editors and output fonts are hard to read by default. Fonts in the editor can be resolved by modifying the configuration. However, the output font cannot be modified by configuration.
You can do this by modifying the default configuration of the JDK, but all Java GUI programs will be affected.
The following is an example of JDK7.
In the <JDK installation directory, such as: C:\Program Files\java\jdk1.7.0_17\jre\lib>/jre/lib under a named Fontconfig.properties.src, first back up.
Configuration files by default in GBK and GB18030, the equal-width word (monospace) takes precedence over the SimSun (that is, the Arial) and can be changed to take precedence over courier New (defined in the file as alphabetic).
Find Sequence.monospaced.gbk=chinese-ms936,alphabetic,dingbats,symbol
Change to Sequence.monospaced.gbk=alphabetic,chinese-ms936,dingbats,symbol.
Find Sequence.monospaced.gb18030=chinese-gb18030,alphabetic,dingbats,symbol
Change to Sequence.monospaced.gb18030=alphabetic,chinese-gb18030,dingbats,symbol.
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.