<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    That likely means that initializing the AWT toolkit is interfering
    with this functionality.<br>
    <br>
    I presume you are using a very recent ea build of JavaFX 22. What
    version of JDK are you using?<br>
    <br>
    -- Kevin<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 2/10/2024 9:05 PM, Christopher
      Schnick wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:37b90a7c-3ab4-456b-8176-080f45c70a12@xpipe.io">
      
      <p>Well, that is going to be a fun one to debug ... In my
        application I check for a headless environment with
        GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices().
        If you call that one before you initialize your application, the
        preferences detection does no longer update. So if you augment
        your PlatformPreferencesChangedTest application with this main
        method, it no longer works. Also, it throws another exception
        when clicking on the fail button.<br>
      </p>
      <p><code>    public static void main(String[] args) {<br>
                 
          GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();<br>
                  Application.launch(args);<br>
              }</code><br>
      </p>
      <div class="moz-cite-prefix">On 10/02/2024 18:44, Michael Strauß
        wrote:<br>
      </div>
      <blockquote type="cite" cite="mid:CAJEpuXS15eZJnDfBc1vM5LTWh2j6MhyiFZR5X3zSixF0USTXBA@mail.gmail.com">
        <pre class="moz-quote-pre" wrap="">Since I can't reproduce the error on macOS, it's hard to say what
could be causing it.

If you have the chance, maybe you could run the
PlatformPreferencesChangedTest application:
<a class="moz-txt-link-freetext" href="https://github.com/openjdk/jfx/blob/master/tests/manual/events/PlatformPreferencesChangedTest.java" moz-do-not-send="true">https://github.com/openjdk/jfx/blob/master/tests/manual/events/PlatformPreferencesChangedTest.java</a>

That might rule out that the differences we're seeing have anything to
do with the way we're using the API.


On Sat, Feb 10, 2024 at 6:23 PM Christopher Schnick <a class="moz-txt-link-rfc2396E" href="mailto:crschnick@xpipe.io" moz-do-not-send="true"><crschnick@xpipe.io></a> wrote:
</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">I checked again, restarted everything, but still the same problem:

Furthermore, I also tested it on my Asahi Fedora Linux with the latest KDE Plasma. The preferences values there are all detected correctly, but are never updated at runtime when changed in the settings menu.
</pre>
        </blockquote>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>