Java Swing Ayatana is a project that brings Ubuntu global menu (AppMenu) and HUD support for Java Swing applications.
JAyatana version 2 was released recently, getting support for Ubuntu 13.10 along with a PPA for easy installation. Update: the PPA now supports Ubuntu 14.04 and 14.10.
Using this, you'll get Unity AppMenu and HUD support for applications such as: NetBeans IDE, IntelliJ IDEA, Android Studio, jDownloader and so on.
Here's an IntelliJ IDEA screenshot using a global menu under Unity (Ubuntu 14.04):
And Netbeans IDE:
And of course, HUD works too:
Note that this won't work for Eclipse because it's a SWT application (update: in Ubuntu 14.04, Eclipse has HUD / AppMenu support by default). If you want Unity AppMenu / HUD support for Eclipse IDE, see the instructions HERE for Ubuntu 13.04 and older or, for Ubuntu 14.04, use the new unity-gtk-module dconf option to whitelist Eclipse. Unfortunately the old method to enable the Eclipse AppMenu doesn't work properly in Ubuntu 13.10.
Get global menu / HUD support for Java Swing applications using Java Ayatana
Java Swing Ayatana is available in a PPA for Ubuntu 14.04 and 14.10. Add the PPA and install it using the following commands:
sudo add-apt-repository ppa:danjaredg/jayatana sudo apt-get update sudo apt-get install jayatana
For Ubuntu 15.04, 15.10 and 16.04, JAyatana is available in the official repositories so to install it, use the following command:
Once installed, log out and log back in.
sudo apt-get install jayatana
If you want to checkout the source, report bugs and so on, see the Java Swing Ayatana page @ Google Code.
How to rever the changes
1. Because files in /etc/ are only removed when the package that installs them is purged, to revert the changes you'll have to purge the packages installed from the PPA using the following command:
sudo apt-get --purge remove jayatana libjayatana libjayatanaag libjayatana-java libjayatanaag-java
2. And finally, log out and log back in.
seen @ +Bademus l.