From 0aae9b10c223574f08d00abf179e8cd9ee9a80df Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 24 Dec 2008 12:07:53 +0100 Subject: [PATCH] Remove the JFrame dependency from UpdateChecker. --- src/de/todesbaum/jsite/gui/UpdateChecker.java | 10 +--------- src/de/todesbaum/jsite/main/Main.java | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) 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(); -- 2.7.4