summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAndreas Abraham <andreas.abraham@egiz.gv.at>2018-09-07 11:33:53 +0200
committerAndreas Abraham <andreas.abraham@egiz.gv.at>2018-09-07 11:33:53 +0200
commite6817d60624b7e3f97b579fe5b280f829b78902f (patch)
tree6ada5183838d5a9de4afad417c64faf99f0822c0 /utils
parent03bee4398bd2aff20fdcb1dee3419c5110145a02 (diff)
downloadmocca-e6817d60624b7e3f97b579fe5b280f829b78902f.tar.gz
mocca-e6817d60624b7e3f97b579fe5b280f829b78902f.tar.bz2
mocca-e6817d60624b7e3f97b579fe5b280f829b78902f.zip
refactored mocca updater
Diffstat (limited to 'utils')
-rw-r--r--utils/src/main/java/at/gv/egiz/updater/Constants.java (renamed from utils/src/main/java/at/gv/egiz/upater/Constants.java)2
-rw-r--r--utils/src/main/java/at/gv/egiz/updater/MoccaUpdater.java (renamed from utils/src/main/java/at/gv/egiz/upater/MoccaUpdater.java)2
-rw-r--r--utils/src/main/java/at/gv/egiz/updater/NewVersionDialog.java (renamed from utils/src/main/java/at/gv/egiz/upater/NewVersionDialog.java)5
-rw-r--r--utils/src/main/java/at/gv/egiz/updater/VersionComparator.java (renamed from utils/src/main/java/at/gv/egiz/upater/VersionComparator.java)2
4 files changed, 5 insertions, 6 deletions
diff --git a/utils/src/main/java/at/gv/egiz/upater/Constants.java b/utils/src/main/java/at/gv/egiz/updater/Constants.java
index 5a610039..e836bae7 100644
--- a/utils/src/main/java/at/gv/egiz/upater/Constants.java
+++ b/utils/src/main/java/at/gv/egiz/updater/Constants.java
@@ -1,4 +1,4 @@
-package at.gv.egiz.upater;
+package at.gv.egiz.updater;
public class Constants {
diff --git a/utils/src/main/java/at/gv/egiz/upater/MoccaUpdater.java b/utils/src/main/java/at/gv/egiz/updater/MoccaUpdater.java
index c6907acd..1e1bc6c6 100644
--- a/utils/src/main/java/at/gv/egiz/upater/MoccaUpdater.java
+++ b/utils/src/main/java/at/gv/egiz/updater/MoccaUpdater.java
@@ -1,4 +1,4 @@
-package at.gv.egiz.upater;
+package at.gv.egiz.updater;
import java.io.BufferedReader;
import java.io.IOException;
diff --git a/utils/src/main/java/at/gv/egiz/upater/NewVersionDialog.java b/utils/src/main/java/at/gv/egiz/updater/NewVersionDialog.java
index 2199b7f7..2765bc84 100644
--- a/utils/src/main/java/at/gv/egiz/upater/NewVersionDialog.java
+++ b/utils/src/main/java/at/gv/egiz/updater/NewVersionDialog.java
@@ -1,4 +1,4 @@
-package at.gv.egiz.upater;
+package at.gv.egiz.updater;
import java.awt.BorderLayout;
import java.awt.Desktop;
@@ -19,7 +19,6 @@ import javax.swing.JLabel;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
-import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
@@ -60,7 +59,7 @@ public class NewVersionDialog extends JDialog {
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
getContentPane().add(contentPanel, BorderLayout.CENTER);
contentPanel.setLayout(null);
- BufferedImage myPicture = ImageIO.read(new File("C:/Users/aabraham/Downloads/information-icon.png"));
+ BufferedImage myPicture = ImageIO.read(getClass().getResource("/at/gv/egiz/updater/information-icon.png"));
ImageIcon icon = new ImageIcon(myPicture.getScaledInstance(50, 50, Image.SCALE_SMOOTH));
{
JLabel lblNewVersion = new JLabel("New Mocca Version " + version + " available.");
diff --git a/utils/src/main/java/at/gv/egiz/upater/VersionComparator.java b/utils/src/main/java/at/gv/egiz/updater/VersionComparator.java
index c1196cf7..19a96a68 100644
--- a/utils/src/main/java/at/gv/egiz/upater/VersionComparator.java
+++ b/utils/src/main/java/at/gv/egiz/updater/VersionComparator.java
@@ -13,7 +13,7 @@
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
-package at.gv.egiz.upater;
+package at.gv.egiz.updater;
// Imports
import java.util.Comparator;