DragShot / DS-Desktop-Notify

A lightweight library that you can use in your Java-powered desktop apps to show floating notifications on the desktop.
MIT License
5 stars 3 forks source link
desktop floating-notifications java notifications

DS-Desktop-Notify build passing java-version 1.7 platform desktop

A lightweight library that you can embed in your Java-powered desktop apps to display floating notifications on the desktop.

Preview

Under development, this library allows to show small and stylish notifications on the Desktop. As the developer, all you need is to add this tiny .jar to your classpath and invoke a single static method to create and display a new notification. Something as simple as the following:

DesktopNotify.showDesktopMessage(
    "This is a notification",
    "With DS Desktop Notify, displaying notifications on the screen is quick and easy!",
    DesktopNotify.SUCCESS);

You can customize your notification to make it show what you want. You can customize its looks with a title, a message, an icon (or use a default one) and even the fonts and colors, picking one of the provided themes or creating one of your own. Behavior can also be customized with a given time before the notification expires (it can be infinite too, so only a click will make it go away), and an action event on click. You don't need to worry about the bounds nor where you should break lines (as in JOptionPane), because all of this is automatically measured before showing your notification.

You can also read the wiki for more instructions on how to use this library.

So, no matter what your application is about, if you need to show pop-up notifications on the Desktop in any moment, you can use this library to deal with that.

Features

Requirements

Being developed

Do you want to use this in a production environment?

It has come to my attention that there's been some enterprise and educational projects that have included DS Desktop Notify as one of their dependencies. This is why I have deployed an official javadoc.

If you are interested in using DS Desktop Notify and need some help/guidance with it, want to request a feature you need or submit a bug, you can send an e-mail to the.drag.shot@gmail.com with a subject starting with [Desktop Notify], or open an issue here on GitHub.