Module FXDialogs

Class FXTrayIcon

java.lang.Object
java.awt.TrayIcon
com.amirali.fxdialogs.FXTrayIcon

public class FXTrayIcon extends TrayIcon
  • Constructor Details

    • FXTrayIcon

      public FXTrayIcon(@NotNull @NotNull Image image, @NotNull @NotNull javafx.scene.control.ContextMenu menu)
      initial FXTrayIcon
      Parameters:
      image - tray icon image
      menu - tray icon menu
    • FXTrayIcon

      public FXTrayIcon(@NotNull @NotNull Image image, @NotNull @NotNull String tooltip, @NotNull @NotNull javafx.scene.control.ContextMenu menu)
      initial FXTrayIcon
      Parameters:
      image - tray icon image
      tooltip - tray icon tooltip text
      menu - tray icon menu
    • FXTrayIcon

      public FXTrayIcon(@NotNull @NotNull Image image)
      initial FXTrayIcon
      Parameters:
      image - tray icon image
    • FXTrayIcon

      public FXTrayIcon(@NotNull @NotNull Image image, @NotNull @NotNull String tooltip)
      initial FXTrayIcon
      Parameters:
      image - tray icon image
      tooltip - tray icon tooltip text
  • Method Details

    • getStylesheets

      public javafx.collections.ObservableList<String> getStylesheets()
      stylesheets of the context menu owner window
      Returns:
      ObservableList
      Throws:
      NullPointerException - context menu is null or empty