JDK-6302504 : ActionEvent not triggered by the TrayIcon when clicking display message the first time, WinXP
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-07-27
  • Updated: 2011-01-19
  • Resolved: 2006-03-13
Related Reports
Relates :  
Description
Make sure you have DESELECTED 'Keep taskbar on top of other windows' in the taskbar properties. 

1. ActionEvents are not triggered when clicking on the display message the first time on WinXP. To reproduce this bug, run the application attached. You would see a frame and a tray icon gets added to SystemTray. Without doing anything else, click on the 'DisplayMessage' button. YOu would see a message being displayed near the system tray. Click on the message immediately. You will not see any ActionEvent on the console.

2. Even for subsequent times, the action event is not consistantly triggered when clicking different portions of the message. Out of 10 trials, I got ActionEvent only 6 times. You can try this by repeatedly clicking on DisplayMessage button and clicking on the message itself. 

3. ActionEvent is not triggered when displaying multiple messages of different types in succession and clicking on it. 

I reproduced it on the current PIT build (b47) with WinXP. But looks like these issues are not specific to the PIT build since I am able to reproduce them on b44 also intermittently.

I have attached a sample test and an image.

Comments
EVALUATION I could not reproduce the bug. The single issue which I was confronted was that if I moved mouse too fast sometimes looks like a button "Display message" misfired. But I shifted the blame for it on my mistakes which were caused by quick gestures. You have written in description that rapidly. May be tring to click rapidly you click onto the area where display message should appear but it has not appeared yet. Could you reproduce the problem and keep attention to the fact that the ballon is shown?
13-10-2005

EVALUATION Reproduced sporadically on WinXP, regardless of "Keep taskbar on top of other windows" option. Moreover, sometimes the message itself does not appear when clicking the button (reproduced a few times) - probably we should file a separate bug on this.
27-07-2005