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.

Exactly like this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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