Before you make any changes to Netbeans, go to the terminal and enter: netbeans --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"
There are various fidelity problems in the Swing GTK L&F which manifest themselves differently on different GNOME and Unity releases, themes, and of course Java versions. NetBeans per se does not do much with it. Always check in SwingSet or similar as a baseline.
发布评论
评论(3)
我的解决方案是使用其他主题启动 Netbeans,例如 Candido Calm 与 Netbeans 看起来不错。
这是我的 Netbeans 启动器 (/home/user/bin/netbeans):
My solution is to start Netbeans with an other Theme, for example Candido Calm looks good with Netbeans.
This is my Netbeans starter (/home/user/bin/netbeans):
我从这里获得此信息: http://www.florian-hacquebart.eu/?p= 214
在对 Netbeans 进行任何更改之前,请转到终端并输入:
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)更改整行读取(全部一行):netbeans_default_options =“-J-Dswing.aatext = true -J-Dawt.useSystemAAFontSettings = on --laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel”
I got this information from here: http://www.florian-hacquebart.eu/?p=214
Before you make any changes to Netbeans, go to the terminal and enter:
netbeans --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"
Swing GTK L&F 中存在各种保真度问题,这些问题在不同的 GNOME 和 Unity 版本、主题,当然还有 Java 版本上表现不同。 NetBeans 本身并没有用它做太多事情。始终检查 SwingSet 或类似的基线。
There are various fidelity problems in the Swing GTK L&F which manifest themselves differently on different GNOME and Unity releases, themes, and of course Java versions. NetBeans per se does not do much with it. Always check in SwingSet or similar as a baseline.