From 285a84ac9dcc2774b7a23cece07cb0aa7a462997 Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 22 Jul 2017 14:52:22 +0200 Subject: [PATCH] Now uses Version instead of String. Added @Property for IMAGE_PATH --- src/dorkbox/notify/Notify.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/dorkbox/notify/Notify.java b/src/dorkbox/notify/Notify.java index 6082e02..ae04560 100644 --- a/src/dorkbox/notify/Notify.java +++ b/src/dorkbox/notify/Notify.java @@ -28,7 +28,9 @@ import javax.swing.ImageIcon; import dorkbox.util.ActionHandler; import dorkbox.util.LocationResolver; +import dorkbox.util.Property; import dorkbox.util.SwingUtil; +import dorkbox.util.Version; /** * Popup notification messages, similar to the popular "Growl" notification system on macosx, that display in the corner of the monitor. @@ -54,6 +56,7 @@ class Notify { /** * Location of the dialog image resources. By default they must be in the 'resources' directory relative to the application */ + @Property public static String IMAGE_PATH = "resources"; private static Map imageCache = new HashMap(4); @@ -63,8 +66,8 @@ class Notify { * Gets the version number. */ public static - String getVersion() { - return "2.20"; + Version getVersion() { + return new Version("2.20"); } /**