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

SystemTray doesn't have the spec how to release all of the native screen resources

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6
    • client-libs
    • Cause Known
    • generic
    • generic

      SystemTray feature (ccc 4310333) has no clear description concerning to when an application will release all of the native screen resources and when an application will capture them.

      So when we are reading the spec for java.awt.Component there is isDisplayable method where is available the link to dispose method. The dispose method says that it releases all of the native screen resources etc. So after dispose methos is called if there are no displayable components and other active working threads then an application should exit.

      But when we see on SystemTray component we cannot find corresponding description for it. As we could suppose the system tray is realized after add() method called and disposed after last remove() method removes all the added icons from system tray. But in fact the spec have no such a description and Sun JDK RI have no such functionality.

      There should be added a description to the spec and implemented functionality for SystemTray class to dispose an application and release all resources but not invoke System.exit().
      ###@###.### 2005-06-15 12:20:43 GMT

            ant Anton Tarasov (Inactive)
            ydanilev Yury Danilevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: