如何修复Ubuntu 10上Netbeans 7.0的深层破解外观和问题 [英] How do I fix the deeply broken look and feel Issues with Netbeans 7.0 on Ubuntu 10

查看:86
本文介绍了如何修复Ubuntu 10上Netbeans 7.0的深层破解外观和问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑上面的截图标准的Netbeans安装在标准的Ubuntu 10.10发行版上。请注意以下内容:

Consider the screenshot above of a standard Netbeans Install on a standard Ubuntu 10.10 distribution. Notice the following:


  1. 主菜单栏字体与系统的其他部分不一致。

  2. 下拉菜单没有框架(这在文件菜单中非常明显)

  3. 灰显菜单是浮雕,而不是灰显。

  4. 键盘快捷键是不可读的,除非你实际将鼠标悬停在菜单上。

  5. 编辑器字体很难看。

  1. The main menu-bar fonts are not consistent with the rest of the system.
  2. Drop down menus do not have frames (This is very noticeable from the File menu)
  3. The "grayed out" menus are "embossed", not grayed out.
  4. The keyboard short-cuts are unreadable unless you actually hover over the menu.
  5. The editor fonts are ugly.

我正在使用最新的Java(TM)SE运行时环境(版本1.6.0_25-b06),安装在/ opt /中的sun / oracle 64位...我的netbeans_jdkhome指向安装在/ opt /中的正确JDK,哪个java 指向JDSK中的正确java,因为我在/etc/profile.d中添加了一个配置文件。该系统是AMD 64位Ubuntu 10.10安装。使用默认环境主题,切换到Clearlooks修复了一些问题,其代价是拧掉其他所有内容的L& F而不是解决方案......

I'm using the latest Java(TM) SE Runtime Environment (build 1.6.0_25-b06), 64 bit from sun/oracle installed in /opt/... My netbeans_jdkhome points to the correct JDK installed in /opt/, which java points to the correct java in the JDSK as I added a profile to /etc/profile.d. The system is AMD 64 bit Ubuntu 10.10 install. The Default Ambiance theme is used, switching to Clearlooks fixes some of the issues at the cost of screwing the L&F of everything else, not a solution...

- -laf Nimbus按预期工作,字体仍无法使用,不是解决方案,特别是因为我正在开发NB平台应用程序而且L& F很重要。

--laf Nimbus works as expected, fonts are still unusable, not a solution, especially as I'm developing NB Platform apps and L&F is important.

我没有这些问题在使用Netbeans 7.0的Fedora 13上。

I have none of these issues on Fedora 13 with Netbeans 7.0.

目前我能做的最好的是使用Nimbus LAF

The best I can do currently is with the Nimbus LAF

--laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd

所以netbeans.conf中的netbeans_default_options看起来像这样:

So my netbeans_default_options in netbeans.conf looks like this:

netbeans_default_options="-J-client -J-Xss2m -J-Xms512m -J-XX:PermSize=32m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true --laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd"


推荐答案

我从这里得到了这些信息: http://www.florian-hacquebart.eu/?p=214

I got this information from here: http://www.florian-hacquebart.eu/?p=214

在对Netbeans进行任何更改之前,请转到终端并输入:

netbeans --laf com.sun.java.swing.plaf.gtk .GTKLookAndFeel

Before you make any changes to Netbeans, go to the terminal and enter:
netbeans --laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel

这会导致Netbeans使用你的GTK主题。如果你喜欢你所看到的:

*我不使用ubuntu,但我认为这是正确的:
1)在终端gksudo gedit / usr / share / netbeans / etc / netbeans中。 conf

2)寻找一条以netbeans_default_options开头的行。

3)将整行改为read(所有一行):netbeans_default_options = - J-Dswing.aatext = true -J-Dawt.useSystemAAFontSettings = on --laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel

It should cause Netbeans to use your GTK theme. If you like what you see:
*I don't use ubuntu so but I bielive this is correct: 1)In terminal gksudo gedit /usr/share/netbeans/etc/netbeans.conf
2)Look for a line that starts with netbeans_default_options.
3)change the entire line to read (all one line): netbeans_default_options="-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=on --laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel"

这篇关于如何修复Ubuntu 10上Netbeans 7.0的深层破解外观和问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆