JDK-6530349 : jdk7 b08 system tray shows tooltip as window in task panel
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux,solaris_10
  • CPU: generic,x86,sparc
  • Submitted: 2007-03-02
  • Updated: 2011-03-07
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b14Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b08)
Java HotSpot(TM) Client VM (build 1.7.0-ea-b08, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Linux 2.6.18.2-34-default
SUSE Linux 10.2

EXTRA RELEVANT SYSTEM CONFIGURATION :
KDE 3.5.5
Celeron 2.4 GHz, 1GB RAM

A DESCRIPTION OF THE PROBLEM :
System tray functionality reported as fixed in bug 6448876. but when running test program - it paints tooltip as separated window.

REGRESSION.  Last worked in version mustang

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        SystemTray tray = SystemTray.getSystemTray();
        
        PopupMenu menu = new PopupMenu();
        menu.add(new MenuItem("new menu item"));
        
        TrayIcon icon = new TrayIcon(Toolkit.getDefaultToolkit().getImage("/home/paranoid/Documents/develop/pwget2/src/org/patology/get/resources/images/add.png"), "tooltip", menu);
        icon.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
                throw new UnsupportedOperationException("Not supported yet.");
            }
        });
        
        try {
            tray.add(icon);
        } catch (Exception e) {
            e.printStackTrace();
        }



REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
        SystemTray tray = SystemTray.getSystemTray();
        
        PopupMenu menu = new PopupMenu();
        menu.add(new MenuItem("new menu item"));
        
        TrayIcon icon = new TrayIcon(Toolkit.getDefaultToolkit().getImage("/home/paranoid/Documents/develop/pwget2/src/org/patology/get/resources/images/add.png"), "tooltip", menu);
        icon.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
                throw new UnsupportedOperationException("Not supported yet.");
            }
        });
        
        try {
            tray.add(icon);
        } catch (Exception e) {
            e.printStackTrace();
        }

---------- END SOURCE ----------

Release Regression From : 7.0
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

Comments
EVALUATION The same behavior can be observed with balloons. The reason is removing override-redirect property from a Window. However, tray icon is a cross-desktop thing and so tray icon itself, a tooltip and a balloon should be override-redirect.
20-03-2007

EVALUATION I have attached a complete test (.java and .gif) that can be used to demonstrate the problem. I was able to reproduce it at least on KDE 3.5.4, with the fix for 6448876.
09-03-2007