Netbeans 7 (Swing) issue with cinnamon on mint 12 #328

ghost opened this Issue Feb 13, 2012 · 51 comments


None yet
ghost commented Feb 13, 2012

There is an issue with Netbeans 7 (Swing) on Linux Mint 12 with cinnamon.
This Problem is solved on Gnome 3, but not on Mint 12 + cinnamon.
The crazy thing is on Fedora 16 + cinnamon, this bug don’t appear.

M4he commented Feb 14, 2012

I can confirm this issue. When having NetBeans maximized there's a huge offset between mouse click position within the NetBeans UI and the actual cursor position.


I have the same problem with Cinnamon 1.3.1 on Ubuntu 11.10.

Antonin Nebuzelsky 2011-08-23 10:16:16 UTC
See JDK issue

Increasing JDK bug priority to medium. Closing wontfix on our side.


wangsiyuan 2011-09-06 07:17:14 UTC
using openjdk instead of jdk can solve this problem.
my os is archlinux, i also get involed in this problem. then i changed jdk to
openjdk, everything is ok now

This should be a bug on Oracle Java itself (hardcoding Mutter and not Muffin?).

Please use OpenJDK as a workaround.

@clefebvre clefebvre closed this Mar 5, 2012
rat4 commented Mar 5, 2012

Yes, OpenJDK hardcodes tricks for various WMs. Current version of OpenJDK (7u3) does not know about muffin.


I could reproduce the problem with sun-java6-jdk... though switching to openjdk-6-jdk fixed the issue.

rat4 commented Mar 5, 2012

With openjdk6, I see the same issue.


@rat4 Me too, in openjdk-7. I'll see about reporting it upstream.

To reproduce: click (or click-and-hold) Help -> About. Notice the menu selection resets oddly in fullscreen.

netbeans --jdkhome /usr/lib/jvm/java-6-sun  # Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02

netbeans --jdkhome /usr/lib/jvm/java-7-openjdk-amd64  # Java: 1.7.0_147-icedtea; OpenJDK 64-Bit Server VM 21.0-b17
ghost commented Mar 8, 2012

this workaround: netbeans --jdkhome /usr/lib/jvm/java-7-openjdk-amd64
don't work with mint 12! it's the same issue. can anyone explain why this work on fedora with openjdk and cinnamon ? and mint 12 + cinnamon not?

ghost commented Mar 8, 2012

And openjdk-6-jdk or openjdk-7-jdk fixed exactly nothing on linux mint 12 + cinnamon. I tested both.
To Reproduce move the Netbeans Window to the middle of the screen.. than Maximize, an try to click on Help.

ghost commented Mar 14, 2012

reopen please

@clefebvre clefebvre reopened this Mar 15, 2012
ghost commented Mar 15, 2012

I would donate 100€ to Linux Mint, if someone really fix this :)


I don't think it's on our side unfortunately...


This issue affects me on Ubuntu 12.04 but not on Fedora 16

A hacky fix for this is to go to Full screen mode, which makes the menu work correctly, even after changing back to normal view.

kaqqao commented May 23, 2012

There's an interesting new comment from bernarpa on #473.


Here's the comment:

Using Cinnamon 1.4UP1-1 on Arch Linux x86_64 and OpenJDK 1.7.0_03, I found that NetBeans menus (both the main menu and the contextual menus) works well if:

  1. NetBeans is not maximized;
  2. Cinnamon is configured with only 1 panel on top.

With 1 bottom panel or with 2 panels, top and bottom, while moving the mouse pointer over an open menu the menu item highlighted is slightly above the mouse pointer itself (by a number of pixel, say, very similar to the size of the panel) and, if NetBeans is maximized, the main menu's menus won't indeed stay open after being clicked.

Gomes81 commented May 30, 2012

This issue should be confirmed and rated as hight priority... This problem is very annoying in my Mint 13.
I have to go back to Gnome 3 desktop in order to work in Netbeans.

7-King commented Jun 12, 2012

Is there a solution in sight? This is really sad. I have this problem with many of my Java apps. I tested OpenJDK 1.6/1.7/1.8 and the original Oracle, and nothing solve this Problem. What is on Cinnamon different to gnome 3, that break all the Java apps. An why this Problem don't appear on Fedora?

Gomes81 commented Jun 12, 2012

After posting here my Mint 13 has been updated and the problem somehow has been solved, I don't know what changed, really. Like 7-King I've tested both OpenJDK and Oracle implementation of Java and neither of them have worked.
Here's my current working configuration:

Linux gomes-HPDV6 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Cinnamon 1.4.0

java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)

Product Version: NetBeans IDE 7.1.2 (Build 201204101705)
Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21
System: Linux version 3.2.0-24-generic running on amd64; UTF-8; en_US (nb)

Hope this can help someone.

7-King commented Jun 12, 2012

Thank You. I have at the moment Mint Debian. But if this work with Mint 13. Maybe i shuld update to cinnamon 1.4 if this possible. If this don't work than i switch to Mint 13, and try out.

Gomes81 commented Jun 12, 2012

What can also be related to this, is that I'm no longer using AMD proprietary driver for my ATI Graphics Card. I'm using the open source driver Gallium 0.4 instead.
I really can't remember what I've changed in my configuration that solved this problem.

kaqqao commented Jun 20, 2012

My Mint 13, with all updates installed and nVidia prop drivers, still suffers from this...

Gomes81 commented Jun 20, 2012

Try using the open source driver...

The problem seems to happen only when proprietary drivers are used. And Cinnamon has many issues with nVidia and AMD proprietary drivers, this is just one of them and should be fixed.

7-King commented Jun 20, 2012

I have the default Intel driver, i don't know if this is a proprietary? I thought this is open source if is default? I runnig at the moment the current Mint Debian Edition. Maybe this problem is solved with the cinnamon 1.4 UP1 Update on Mint 13?

nehsog commented Jun 25, 2012

Same problem on LMDE/Cinnamon when running Oracle JDeveloper and as a maximized window. Moreover the effect occurs when dragging the non-maximized window to left or right side of the desktop so that it fills the left or right half of the screen. Problem seems to occur, when window is maximized in its y-dimension...

7-King commented Jun 25, 2012

I tested this with mint 13 cinnamon, openjdk 6 and 7 and all updates, and this problem still appear. now i have to switch to fedora :-/ and miss my apt-get :-/


Unfortunately I have this problem too!


Same problem here! openjdk 6. proprietary ati drivers. panel on top. 64 bit mint 13 cinnamon!

kaqqao commented Jun 30, 2012

I've just installed Oracle JDK 1.6.0_33 (the latest of Java 6) and selected the JRE that comes with it in alternatives. Believe it or not, all my Java related issues are gone, including this one and #728.

If you got no additional info to add, please refrain from posting "me too".


I think that this problem isn't fixed yet.
I am using Linux Mint Debian, Cinnamon and Oracle JDK 1.6.0_33 and the problem remains.
It is a very annoying bug, by the way.

kaqqao commented Jul 6, 2012

Stupid question, but are you certain it's the Oracle one that is actually in use? Merely switching the java provider makes the bug disappear/reappear for me, so it really looks like Oracle has solved it.
One small and probably unimportant detail: I did not install a separate (often referred to as 'public') JRE, just the JDK and am using it's own JRE.

nehsog commented Jul 6, 2012

Tried it again with Oracle JDK 1.6.0_33 as supposed by veggen. Problem still occurs, but while trying out I found a curious workaround: Move the application to the upper left corner of the screen (Position [0, 0]) and then maximize the window. The menu will work as it should be.


Veggen, I've tested with OpenJDK and Oracle's JDK in varios versions and the bug persists in all JDKs. I don't think that is a Java problem, in my opinion is a problem in User Interface, I have tested others UI too. In GNOME-Shell(Gnome 3), Mate and Cinnamon this problem occurs, but in Gnome-Classic, Unity(version from Ubuntu 12.04) and XFCE everything is fine.

kaqqao commented Jul 8, 2012

You guys are right... juggling the window around a little and maximizing it again triggers the bug, but moving it to 0,0 as described by nehsog does help.


it finally works for me, i installed openjdk-7-jre after that i change the file "/etc/netbeans.conf" and replace the line netbeans_jdkhome="/usr/lib/jvm/default-java/jre" for netbeans_jdkhome="/usr/lib/jvm/java-7-openjdk-i386" now i can maximize the window and everything works fine!


"You guys are right... juggling the window around a little and maximizing it again triggers the bug, but moving it to 0,0 as described by nehsog does help."

Confirmed. This makes me think Netbeans somehow doesn't know it's been maximized, and calculates the relative mouse position incorrectly based on its previous window position.


Closing due to inactivity. If you think this still might be an issue, see the instructions here to try a newer version. If the problem still exists, we'll reopen the issue.

@mtwebster mtwebster closed this Sep 10, 2012
kaqqao commented Sep 11, 2012

What do you mean by "inactivity"? On whose part? The last comment confirming it's still an issue was 4 days ago. I'm running the latest nightly, and it is still present. Please reopen.

dalcde commented Sep 11, 2012

I'd speak for @mtwebster :)
The closing due to inactivity was indeed a mistake.
But the issue itself is not cinnamon-related, but an issue with JDK.

Gomes81 commented Sep 11, 2012

How is this a JDK issue if this problem doesn't happen in other desktop environments (like gnome)?
If you still think this is a JDK issue, is that issue already been reported to Oracle or Open JDK? If so, why don't you mention the issue number in those bug tracking systems?
We just talking about netbeans here, but this bug may happen in other Java software... So more people than we think should be affected by this bug, what makes it critical.
I actually don't care much if you close it or not, but you guys should make things right. Just saying.

dalcde commented Sep 11, 2012

It happens with GNOME. Really. It's just that the JDK is aware of the issue and detects if we are using GNOME. If GNOME is used, it will change the code a bit to make it work right. Unfortunately it does not recognize Cinnamon. Yet.

A bug report has been submitted, and I'm waiting for Oracle to approve it.

Gomes81 commented Sep 12, 2012

Ok, thanks for wasting your time to explain that. Much appreciated. Hope this get solved soon.
Best regards.

@AlbertJP AlbertJP reopened this Sep 25, 2012

Reopened it like @veggen and @dalcde suggested.

@clefebvre clefebvre closed this Sep 25, 2012

Problem all time occurs and doesn't matter what Java version you have (openjdk and oracle has the same issue). First you need to maximize the window, but not with the "maximize", but personally it was to the window closest to the edge of the screen. Then you can press the "maximize". Coordinates of the cursor should be correct.

herent commented Apr 30, 2013

I'm still getting this, too. Java Oracle 7 and the latest netbeans nightly build. Mint 14 with Cinnamon.

The full screen and back workaround fixes it for me, but this really makes it hard to work. Especially since the main reason I use this computer is for developing things with Netbeans. I moved to Mint from Ubuntu because Ubuntu was having issues with my keyboards, seems like I might have to move to something else if I can't easily use the main program I use...

ghost commented May 17, 2013

hi , my problem solved when i install compiz on fedora 18.


no more update?

MATE, mint 15 still has the same issue

here is the log from netbeans IDE log
Product Version = NetBeans IDE 7.4 Beta (Build 201307092200) (#35fd57e58775)
Operating System = Linux version 3.8.0-19-generic running on amd64
Java; VM; Vendor = 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.7.0_25-b15

dalcde commented Aug 7, 2013

That's MATE. This is Cinnamon.


The problem persist. I am using Mint 17 with Cinnamon.

onyxnz commented Jun 8, 2015

I have the same issue, with Mint 17.1 Cinnamon 64bit. It also does a similar thing with Firefox and Chrome, where I cannot accurately interact with them until I Unmaximize. Reproducible always if switching between virtual desktops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment