Class DefaultNotificationWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer

public class DefaultNotificationWindow extends JWindow
The default notification window layout.
You can override the insets for the icon, title and message. Example
         map.put(DefaultNotificationWindow.OVERRIDE_ICON_INSETS, new Insets(5,5,5,5));
         map.put(DefaultNotificationWindow.OVERRIDE_TITLE_INSETS, new Insets(5,5,5,5));
         map.put(DefaultNotificationWindow.OVERRIDE_MESSAGE_INSETS, new Insets(5,5,5,5));
         ...
         style.withCustomParams(map);
     
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • OVERRIDE_ICON_INSETS

      public static final String OVERRIDE_ICON_INSETS
    • OVERRIDE_TITLE_INSETS

      public static final String OVERRIDE_TITLE_INSETS
    • OVERRIDE_MESSAGE_INSETS

      public static final String OVERRIDE_MESSAGE_INSETS
    • sIconInsets

      private static final Insets sIconInsets
      default insets for the icon
    • sTitleLabelInsets

      private static final Insets sTitleLabelInsets
      default insets for the title
    • sMessageLabelInsets

      private static final Insets sMessageLabelInsets
      default insets for the message
  • Constructor Details

    • DefaultNotificationWindow

      public DefaultNotificationWindow(Icon icon, String title, String message, INotificationStyle style, GraphicsConfiguration graphicsConfiguration)
      Create a new notification
      Parameters:
      icon - icon we want to display - can be null
      title - title we want to display - can not be null
      message - message we want to display - can be null
      style - style we want to use - can not be null
      graphicsConfiguration - GraphicsConfiguration for the window - can not be null
  • Method Details