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

Taskbar Icons always blurry

XMLWordPrintable

    • x86_64
    • windows

      ADDITIONAL SYSTEM INFORMATION :
      Windows 11
      OpenJDK 17, 21
      JavaFX all versions >=21 affected, also all currently available early access versions

      A DESCRIPTION OF THE PROBLEM :
      Stage.getIcons().add(...) can be used to supply various Icons with different resolutions so JavaFX can pick the best matching one.

      This doesn't seem to work on windows 11. The task bar icon is always blurry. I tried all possible and impossible resolutions.

      Furthermore there is neither a way to circumvent the internal selection logic to implement custom behavior, nor a way to even see which icon is eventually chosen.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a stage in JavaFX, set a custom application Icon through stage.getIcons().add(...) with proper resolution for the task bar.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The icon, if provided with the correct resolution, appears unscaled 1:1 in the task bar.
      ACTUAL -
      The icon always gets scaled in some way leading to very ugly artifacts.

        1. java.png
          java.png
          18 kB
        2. Test.java
          0.6 kB

            pnarayanaswa Praveen Narayanaswamy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: