Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6349480

TrayIcon.displayMessage works incorrectly when the task bar is temporarily hidden, XToolkit

XMLWordPrintable

    • b02
    • sparc
    • solaris_10
    • Verified

      I have added a tray icon to the notification area on the task bar.

      1. My task bar is set with 'Expand' and 'Show hide buttons' option. After adding the tray icon, I am clicking one of the hide buttons so that the taskbar slides to the left or right. Now I am clicking on the Display Message button on my application repeatedly. Nothing happens. Now I am restoring the task bar from the hidden state to normal. Now tray icon is visible. Now I am clicking on the DisplayMessage button again a few times. No message is displayed. Now when I click on the tray icon, all the display messages whatever I have tried to show so far appears one after the other. Until I click on the tray icon, nothing actually happens. This is incorrect. Display messages that are shown when tray icon is hidden must be ignored. Also messages should start appearing properly after the tray icon is restored to normal.

      2. I have deselected 'Expand' option on the task bar. So the size of the task bar has become smaller. Now I am clicking on the HIDE button on the left hand side of the task bar. Task bar slides to the left. Now when I click 'Display Message' button on my application, The message is displayed at left most side of the screen and half of the message is actually hidden. This is incorrect. Such message requests must actually be ignored since the tray icon itself is hidden on the screen.

      This is reproducible on XAWT with all mustang builds. I reproduced it on SolSparc10-JDS.

      I have attached a sample test. Execute the sample test. You would see a frame with lots of buttons. Perform the actions metioned in 1,2 and click on 'Display Message' button accordingly. You may want to choose different message types as well. If the behavior seen matches with the observations listed 1,2, the bug is reproduced.

            ant Anton Tarasov (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: