How to Fix Deeply Disturbed Appearance Problems with Netbeans 7.0 on Ubuntu 10

Broken

Consider the screenshot above of a standard Netbeans installation on a standard Ubuntu 10.10 distribution. Please note the following:

  • The fonts of the main menu do not correspond to the rest of the system.
  • Drop-down menus do not have frames (this is very noticeable from the File menu).
  • The gray menu is crossed out, not grayed out.
  • Keyboard shortcuts cannot be read unless you really hover over the menu.
  • Editor fonts are ugly.

I am using the latest Java Runtime Environment (TM) SE Runtime Environment (build 1.6.0_25-b06), 64 bits 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 when I added the profile to /etc/profile.d. The system is installed on the 64-bit version of AMD Ubuntu 10.10. The Default Ambiance theme is used; switching to Clearlooks fixes some of the problems by screwing up the L&F of everything else rather than solving ...

- laf Nimbus works as expected, fonts are still unusable, not a solution, especially since I am developing applications for the NB platform, and L & F is important.

I do not have any of these problems in Fedora 13 with Netbeans 7.0.

The best I can do now is Nimbus LAF

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

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" 
+6
source share
3 answers

My solution is to run Netbeans with a different theme, for example Candido Calm looks great with Netbeans.

This is my Netbeans starter (/ home / user / bin / netbeans):

 #!/bin/sh GTK2_RC_FILES=/home/user/.themes/Candido-Calm/gtk-2.0/gtkrc /opt/netbeans-dev-trunk/bin/netbeans 
+1
source

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

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

This should cause Netbeans to use your GTK theme. If you like what you see:
* I do not use ubuntu so, but I do it correctly: 1) In the gksudo terminal gedit / usr / share / netbeans / etc / netbeans.conf
2) Look for a line starting 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"

+1
source

In Swing GTK L & F, there are various issues with devotion that manifest themselves differently on different releases of GNOME and Unity, and, of course, on Java versions. NetBeans as such has nothing to do with it. Always check out a SwingSet or similar baseline.

0
source

Source: https://habr.com/ru/post/886878/


All Articles