From 1060a89ddcf484a6a6f0158aa12ddfc15a198404 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 14 Jul 2017 18:46:42 +0200 Subject: [PATCH] Changed Util class names --- src/dorkbox/notify/Notify.java | 8 ++++---- src/dorkbox/notify/NotifyPopup.java | 11 +++++------ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/dorkbox/notify/Notify.java b/src/dorkbox/notify/Notify.java index 6082e02..be471e4 100644 --- a/src/dorkbox/notify/Notify.java +++ b/src/dorkbox/notify/Notify.java @@ -28,7 +28,7 @@ import javax.swing.ImageIcon; import dorkbox.util.ActionHandler; import dorkbox.util.LocationResolver; -import dorkbox.util.SwingUtil; +import dorkbox.util.Swing; /** * Popup notification messages, similar to the popular "Growl" notification system on macosx, that display in the corner of the monitor. @@ -266,7 +266,7 @@ class Notify { void show() { // must be done in the swing EDT //noinspection Convert2Lambda - SwingUtil.invokeAndWaitQuietly(new Runnable() { + Swing.invokeAndWaitQuietly(new Runnable() { @Override public void run() { @@ -320,7 +320,7 @@ class Notify { if (notifyPopup != null) { // must be done in the swing EDT //noinspection Convert2Lambda - SwingUtil.invokeLater(new Runnable() { + Swing.invokeLater(new Runnable() { @Override public void run() { @@ -343,7 +343,7 @@ class Notify { // must be done in the swing EDT //noinspection Convert2Lambda - SwingUtil.invokeLater(new Runnable() { + Swing.invokeLater(new Runnable() { @Override public void run() { diff --git a/src/dorkbox/notify/NotifyPopup.java b/src/dorkbox/notify/NotifyPopup.java index 32dc818..ece6242 100644 --- a/src/dorkbox/notify/NotifyPopup.java +++ b/src/dorkbox/notify/NotifyPopup.java @@ -17,7 +17,6 @@ package dorkbox.notify; import java.awt.BasicStroke; import java.awt.Color; -import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.GraphicsDevice; @@ -48,10 +47,10 @@ import dorkbox.tweenengine.TweenCallback; import dorkbox.tweenengine.TweenEquations; import dorkbox.tweenengine.TweenManager; import dorkbox.util.ActionHandlerLong; -import dorkbox.util.FontUtil; +import dorkbox.util.Font; import dorkbox.util.Property; import dorkbox.util.ScreenUtil; -import dorkbox.util.SwingUtil; +import dorkbox.util.Swing; import dorkbox.util.swing.SwingActiveRender; // we can't use regular popup, because if we have no owner, it won't work! @@ -163,7 +162,7 @@ class NotifyPopup extends JFrame { if (image != null) { setIconImage(image); } else { - setIconImage(SwingUtil.BLANK_ICON); + setIconImage(Swing.BLANK_ICON); } @@ -284,7 +283,7 @@ class NotifyPopup extends JFrame { g2.fillRect(0, 0, WIDTH, HEIGHT); // Draw the title text - Font titleTextFont = FontUtil.parseFont(TITLE_TEXT_FONT); + java.awt.Font titleTextFont = Font.parseFont(TITLE_TEXT_FONT); g2.setColor(titleText_FG); g2.setFont(titleTextFont); g2.drawString(notification.title, 5, 20); @@ -302,7 +301,7 @@ class NotifyPopup extends JFrame { } // Draw the main text - Font mainTextFont = FontUtil.parseFont(MAIN_TEXT_FONT); + java.awt.Font mainTextFont = Font.parseFont(MAIN_TEXT_FONT); String notText = notification.text; int length = notText.length(); StringBuilder text = new StringBuilder(length);