Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ To use, create an instance of <em>TrayNotification</em> and define its title, me
```java
String title = "Congratulations sir";
String message = "You've successfully created your first Tray Notification";
Notification notification = Notifications.SUCCESS;

TrayNotification tray = new TrayNotification();
tray.setTitle(title);
tray.setMessage(message);
tray.setNotification(notification);
tray.setNotificationType(NotificationType.SUCCESS);
tray.showAndWait();
```

Expand Down Expand Up @@ -70,11 +69,10 @@ Using a notice notification with a fading animation, for example:
```java
String title = "Download quota reached";
String message = "Your download quota has been reached. Panic.";
Notification notification = Notifications.NOTICE;

tray.setTitle(title);
tray.setMessage(message);
tray.setNotification(notification);
tray.setNotificationType(NotificationType.NOTICE);
tray.setAnimation(Animations.FADE);
tray.showAndWait();
```
Expand Down