Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8422109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:20:50+00:00 2026-06-10T03:20:50+00:00

I want to display a tray notification using Java like the notifications that comes

  • 0

I want to display a tray notification using Java like the notifications that comes out in windows when disk space is low, there is no antivirus software etc.
enter image description here

Exactly like this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T03:20:52+00:00Added an answer on June 10, 2026 at 3:20 am

    I’m thinking maybe you should have a look at TrayIcon.displayMessage

    The only other way I know to achieve what you want, is via JNI

    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
    
            Image img = null;
            try {
                img = ImageIO.read(new File("..."));
            } catch (IOException e) {
                e.printStackTrace();
            }
            TrayIcon ti = new TrayIcon(img, "Tooltip");
            try {
                // You need to add it to the system tray first
                SystemTray.getSystemTray().add(ti);
            } catch (AWTException ex) {
              ex.printStackTrace();
            }
            ti.displayMessage("Low Disk Space", "Diskspace is very low",
                    MessageType.WARNING);
    
        }
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display an icon in the system tray. It seems like it
I have this XML i want display all fields on the uiview which comes
I'm using Netbeans to develop a Java application and I want to create a
I want to display the result in listview that i written in the texbox
I'm developing a small tray-icon application for Windows and I need to display non-intrusive
I am writing a Java Swing-based program using and JFrame that is able to
hi i am working for Twitter client, i want display number(NSNumber) on UILabel like
I want to display an icon [a .ico file] in System tray with some
I want to display the line number in a textarea like this is possible
I want display properties in HTML/XML via jsp. Like as: ${MyClass.properties.propertieOne} I created extended

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.