Class FXWinUtil

java.lang.Object
it.univr.wordautomata.stylings.FXWinUtil

public class FXWinUtil extends Object
The FXWinUtil class provides utility methods for working with Windows-specific features in JavaFX applications.
  • Method Details

    • getNativeHandleForStage

      public static com.sun.jna.platform.win32.WinDef.HWND getNativeHandleForStage(javafx.stage.Stage stage)
      Represents a handle to a window in the Windows operating system. The handle is used to uniquely identify a window and interact with it.
      Parameters:
      stage - the stage for which to get the native handle
      Returns:
      the native handle for the specified stage
    • setImmersiveDarkMode

      public static void setImmersiveDarkMode(javafx.stage.Stage stage, boolean darkMode)
      Sets the immersive dark mode for the specified stage.
      Parameters:
      stage - the stage for which to set the immersive dark mode
      darkMode - true to enable dark mode, false to disable it