Main Java application window loses focus when a sub-dialog is closed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-7 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When a Java application running under Open Java 7 JRE opens a modal dialog, and the dialog is answered/closed, the main application window does not regain focus.
Furthermore, the Java application window is not in the taskbar (Lubuntu/LXDE). If you do Alt-Tab to return focus to it, the Java application is not there. The only way to return focus to the main Java application window is to click on it.
In comparison, on Java 7 in Windows, the Java application windows also do not appear in the taskbar, but focus is restored to the main application window when a sub-dialog is dismissed/closed, and if you do Alt-Tab, the Java application windows are accessible that way also.
When using Open Java 6, the Java application windows always appeared in the taskbar, but not on Open Java 7, and I had no loss-of-focus problem. If I remove the Open Java 7 packages, the problem goes away.
If the application is launched using JNLP (using Javaws), the Java application windows do appear in the taskbar, and there is no loss of focus problem. The problem occurs with Java applications launched using the "java -jar" command.
Unfortunately, I cannot use javaws to launch my application because the default Java Sound synthesizer (Gervill) can't be used when the application is started via javaws (that problem has been reported in a separate bug report).
I have also observed the problem using the Unity desktop (Ubuntu).
Version: 7u9-2.3.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: openjdk-7-jre 7u9-2.3.
ProcVersionSign
Uname: Linux 3.5.0-17-generic i686
ApportVersion: 2.6.1-0ubuntu6
Architecture: i386
Date: Tue Oct 30 15:58:25 2012
InstallationDate: Installed on 2012-04-26 (186 days ago)
InstallationMedia: Lubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
MarkForUpload: True
SourcePackage: openjdk-7
UpgradeStatus: Upgraded to quantal on 2012-10-20 (10 days ago)