← Back to team overview

openjdk team mailing list archive

[Bug 751909] [NEW] Java Swing applications displayed with wrong name

 

You have been subscribed to a public bug by Marco Trevisan (Treviño) (3v1n0):

Binary package hint: unity

On launcher, all Java Swing applications are with wrong name. Their
tooltip shows the Java class name, with the dots changed by hiphens.

For example, Netbeans icon itself gets inactive after startup.
Then an icon with a '?' shows up indicating "java-lang-Thread" on mouseover.

------------------------------------------------------------------------------------------

Treviño: this issue is java related (affecting javaws apps as well) and it's caused by the fact that the Java apps doesn't  correctly set the WM_CLASS X property on their windows. There was a bug for it (including a patch): http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6528430
The ubuntu java package should probably include it.

A workaround to fix it is to use this window matching agent: https://github.com/jelmerk/window-matching-agent then you need to update the application
.desktop file to change the Exec value including -javaagent:agent.jar=<AppWMClass> and adding StartupWMClass=<AppWMClass>.

** Affects: bamf
     Importance: Undecided
         Status: Confirmed

** Affects: unity
     Importance: Undecided
         Status: Confirmed

** Affects: unity-2d
     Importance: High
         Status: Confirmed

** Affects: bamf (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Affects: openjdk-6 (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Affects: openjdk-7 (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: amd64 apport-bug natty running-unity
-- 
Java Swing applications displayed with wrong name
https://bugs.launchpad.net/bugs/751909
You received this bug notification because you are a member of OpenJDK, which is subscribed to the bug report.