Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4902807
Votes 26
Synopsis RFE: Windows taskbar notification/flashing support
Category java:classes_awt
Reported Against 1.4.2
Release Fixed
State 3-Accepted, request for enhancement
Priority: 4-Low
Related Bugs 6375565 , 6827993 , 4737770
Submit Date 07-AUG-2003
Description




A DESCRIPTION OF THE REQUEST :
Windows allows applications to alert the user that the application needs attention by flashing the Windows taskbar entry. This functionality is very useful for programs such instant messaging applications to alert the user that a new message has arrived. There is currently no pure-Java way to duplicate this functionality.

The RFE is to add an API so that JFrame's and other top-level containers can trigger a flashing taskbar in Windows to alert the user that the application needs attention. It is likely that other operating systems have a similar concept, although I am not familiar with the specifics.

JUSTIFICATION :
The UI feature is critical for many types of applications, such as instant messaging clients.


CUSTOMER SUBMITTED WORKAROUND :
There are two pseudo-workarounds:

1) Change the frame icon on a timer to make it flash. However, this doesn't change the entire taskbar button so it looks very strange next to native applications.
2) Requesting window focus will make the taskbar flash, but it's the wrong behavior in general since the window *will* get focus over all the other Java windows you have open instead of just flashing. This is not what you want with an IM application (for example, if you have many IM windows open).
(Incident Review ID: 193906) 
======================================================================
Work Around
N/A
Evaluation
Desktop integration-related feature.  See 4737770.
  xxxxx@xxxxx   2003-08-07
Comments
  
  Include a link with my name & email   

Submitted On 15-JUL-2008
I've had multiple requests for this feature in various projects, and have had to deal with it using JNI, which is not preferable.  It has become a common staple.  It is a negligible amount of native code, and I would imagine the unit / JCK tests would be one liners.



PLEASE NOTE: JDK6 is formerly known as Project Mustang