From: David ‘Bombe’ Roden Date: Wed, 24 Dec 2008 11:07:53 +0000 (+0100) Subject: Remove the JFrame dependency from UpdateChecker. X-Git-Tag: 0.7~10 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0aae9b10c223574f08d00abf179e8cd9ee9a80df;p=jSite.git Remove the JFrame dependency from UpdateChecker. --- diff --git a/src/de/todesbaum/jsite/gui/UpdateChecker.java b/src/de/todesbaum/jsite/gui/UpdateChecker.java index aa0b9ab..5a13072 100644 --- a/src/de/todesbaum/jsite/gui/UpdateChecker.java +++ b/src/de/todesbaum/jsite/gui/UpdateChecker.java @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Properties; -import javax.swing.JFrame; - import de.todesbaum.jsite.application.Freenet7Interface; import de.todesbaum.jsite.main.Main; import de.todesbaum.jsite.main.Version; @@ -70,9 +68,6 @@ public class UpdateChecker implements Runnable { /** Last found version. */ private Version lastVersion = Main.getVersion(); - /** The parent of the dialog. */ - private final JFrame parent; - /** The freenet interface. */ private final Freenet7Interface freenetInterface; @@ -80,13 +75,10 @@ public class UpdateChecker implements Runnable { * Creates a new update checker that uses the given frame as its parent and * communications via the given freenet interface. * - * @param parent - * The parent of the dialog * @param freenetInterface * The freenet interface */ - public UpdateChecker(JFrame parent, Freenet7Interface freenetInterface) { - this.parent = parent; + public UpdateChecker(Freenet7Interface freenetInterface) { this.freenetInterface = freenetInterface; } diff --git a/src/de/todesbaum/jsite/main/Main.java b/src/de/todesbaum/jsite/main/Main.java index 5601329..b760a79 100644 --- a/src/de/todesbaum/jsite/main/Main.java +++ b/src/de/todesbaum/jsite/main/Main.java @@ -173,7 +173,7 @@ public class Main implements ActionListener, ListSelectionListener, WizardListen jSiteIcon = IconLoader.loadIcon("/jsite-icon.png"); wizard.setIcon(jSiteIcon); - updateChecker = new UpdateChecker(wizard, freenetInterface); + updateChecker = new UpdateChecker(freenetInterface); updateChecker.addUpdateListener(this); updateChecker.start();