I am now working on a java project which needs to create a pop-up notification, similar to the one shown in the picture. For Windows, SystemTray could be used, but for Mac OS it doesn't show the notification globally. How could I achieve this? Is there any specific libraries I need to use?
I have had this experience before. It is better to use a more suitable library like two-slices instead of Java Swing, which is cross platform and works the same in all operating systems. Your code should be such that you can display the icon and message in the System Tray
Toast.toast(ToastType.INFO, "Information", "Here is some information you cannot do without.");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With