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

The size of SystemTray always returns 24X24px in linux

XMLWordPrintable

    • x86_64
    • linux

      ADDITIONAL SYSTEM INFORMATION :
      Debian 11 Cinnamon Desktop Java 8/11/17


      A DESCRIPTION OF THE PROBLEM :
      The XTrayIconPeer defines a hardcoded value 24px for WIDTH and HEIGHT. Even if the SystemTray has a size of 50px, getTrayIconSize() still returns those hardcoded values. The Icon is always painted into this hardcoded area. No matter which size the SystemTray has.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create and add a systemtray icon on linux, and configure the systemtray to be bigger then 24px.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The returned size should match the real size, and the painting code should fill the real size.
      ACTUAL -
      The Size is always returned as 24x24px, and only this area is filled with the icon.

      FREQUENCY : always


        1. SysTrayIconSize.java
          0.2 kB
          Praveen Narayanaswamy

            kizune Alexander Zuev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: