diff --git a/droid-swing-ui/src/main/java/uk/gov/nationalarchives/droid/gui/DroidMainFrame.java b/droid-swing-ui/src/main/java/uk/gov/nationalarchives/droid/gui/DroidMainFrame.java index e3ee41e71..ea28cdd61 100644 --- a/droid-swing-ui/src/main/java/uk/gov/nationalarchives/droid/gui/DroidMainFrame.java +++ b/droid-swing-ui/src/main/java/uk/gov/nationalarchives/droid/gui/DroidMainFrame.java @@ -54,6 +54,7 @@ import javax.help.HelpSet; import javax.help.HelpSetException; import javax.help.SwingHelpUtilities; +import javax.swing.ImageIcon; import javax.swing.JFileChooser; import javax.swing.JFrame; import javax.swing.JOptionPane; @@ -289,7 +290,7 @@ public void propertyChange(PropertyChangeEvent evt) { private void init() { log.info("Starting DROID."); - setIconImage(DroidImageUtils.createBaseMultiResolutionImage(ICONS_PATH, "DROID.png", IconType.LARGE).getImage()); + setIconImage(new ImageIcon(getClass().getResource(ICONS_PATH+"96x96-DROID.png")).getImage()); setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); addWindowListener(new WindowAdapter() { diff --git a/droid-swing-ui/src/main/java/uk/gov/nationalarchives/droid/gui/report/ReportViewFrame.java b/droid-swing-ui/src/main/java/uk/gov/nationalarchives/droid/gui/report/ReportViewFrame.java index e06e908b3..a1c53d345 100644 --- a/droid-swing-ui/src/main/java/uk/gov/nationalarchives/droid/gui/report/ReportViewFrame.java +++ b/droid-swing-ui/src/main/java/uk/gov/nationalarchives/droid/gui/report/ReportViewFrame.java @@ -49,6 +49,7 @@ import static java.nio.charset.StandardCharsets.UTF_8; import javax.swing.GroupLayout; +import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.SwingConstants; @@ -99,7 +100,7 @@ public ReportViewFrame(final Frame parent) { //super(parent); //setModal(true); initComponents(); - setIconImage(DroidImageUtils.createBaseMultiResolutionImage("/uk/gov/nationalarchives/droid/icons/", "DROID.png", IconType.LARGE).getImage()); + setIconImage(new ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/icons/96x96-DROID.png")).getImage()); addWindowListener(new WindowAdapter() {