B4J Code Snippet displayMessage & Tray App Icon

Discussion in 'B4J Code Snippets' started by tchart, Nov 6, 2019.

  1. tchart

    tchart Active Member Licensed User

    You can use displayMessage to show a task bar message as per below

    Dim jo As JavaObject = icon1
    "displayMessage",Array As Object("Success""Changes pushed successfully""INFO"))
    However as you'll see below it says "OpenJDK Platform Binary" which is a bit unhelpful.


    I found on Stack Overflow (https://stackoverflow.com/a/47851505) that if you set the icon to "NONE" then it will use your tray icon and not show the OpenJDK text.

    Dim jo As JavaObject = icon1
    "displayMessage",Array As Object("Success""Changes pushed successfully""NONE"))
  2. Erel

    Erel Administrator Staff Member Licensed User

    (icon1 is a TrayIcon object from the SystemTray library)
    KMatle and tchart like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice