Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm developing a Java application using jFrames, and the Menu bar object doesn't integrate with Unity's top bar (Window Title & Application Menus) as any native Unity application does.

Is there a way to do it?


My app:

menu bar is on window but not on top bar

Firefox integration: (what I want to)

use menu bar on top bar

share|improve this question
    
This question has been asked on stackoverflow though it has not been resolved. I think some of the answers may be of use to you though. Its available here and the answer by Jamel Toms looks promising. –  willl459 Mar 22 at 5:07
    
I've been using the plugin from the page I put above but found it to be outdated. I will post an answer below with everything I can find. –  willl459 Mar 22 at 5:47
add comment

1 Answer 1

up vote 2 down vote accepted

In order to integrate Java applications with the Unity bar you will need an external library. There is one called Java Ayatana that you can get from a PPA. Instructions are on that page but I'll put them here

 sudo add-apt-repository ppa:danjaredg/jayatana
 sudo apt-get update
 sudo apt-get install jayatana

You will need to log out and back in after installing. The instructions here will install the latest version and will keep up to date, the link I put in my comment above is outdated and must be manually installed so I recommend you use this instead.

From the page I linked above there is a tab labeled "wiki" which has a file "configuration". This file explains how to set up a Java program to utilize the Unity top bar. You will need to create a Java desktop application (.desktop file).

share|improve this answer
    
I don't understand how to start using it. I installed using those instructions, but now should I add it as a plugin on netbeans? NOTE: I understand Spanish :) –  Lucio Mar 28 at 23:59
    
After enter your three commands (just install it) it worked without change anything on my project. –  Lucio Mar 29 at 14:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.