summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wilson2014-09-04 10:53:53 +0200
committerMichael Wilson2014-09-04 10:53:53 +0200
commitbceb12dd91f88f59ac2c83f23883b788f08415e0 (patch)
treea2a89a0e73acbc4720090e8c5f5a68df993fbf47
parent-Ausgaben verringert (diff)
downloadtutor-module-bceb12dd91f88f59ac2c83f23883b788f08415e0.tar.gz
tutor-module-bceb12dd91f88f59ac2c83f23883b788f08415e0.tar.xz
tutor-module-bceb12dd91f88f59ac2c83f23883b788f08415e0.zip
Version ausgelagert in Model
-rw-r--r--Dozentenmodul/src/gui/intro/About_GUI.java6
-rw-r--r--Dozentenmodul/src/models/Version.java24
2 files changed, 27 insertions, 3 deletions
diff --git a/Dozentenmodul/src/gui/intro/About_GUI.java b/Dozentenmodul/src/gui/intro/About_GUI.java
index c098d8e9..ed135987 100644
--- a/Dozentenmodul/src/gui/intro/About_GUI.java
+++ b/Dozentenmodul/src/gui/intro/About_GUI.java
@@ -16,6 +16,8 @@ import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
+import models.Version;
+
import util.GuiOrganizer;
@SuppressWarnings("serial")
@@ -23,8 +25,6 @@ public class About_GUI extends JFrame {
private JPanel contentPane;
private JTextPane txtpnVersionVBuilddate;
- private String buildDate ="03.09.2014";
- private String version="1.05";
/**
* Create the frame.
@@ -88,7 +88,7 @@ public class About_GUI extends JFrame {
txtpnVersionVBuilddate = new JTextPane();
txtpnVersionVBuilddate
- .setText("Version: "+version+"\r\nBuild-Date: "+buildDate+"\r\n\r\nContact: michael.wilson@hs-offenburg.de\r\nWebsite: http://bwlehrpool.hs-offenburg.de/");
+ .setText("Version: "+Version.getVersion()+"\r\nBuild-Date: "+Version.getBuildDate()+"\r\n\r\nContact: michael.wilson@hs-offenburg.de\r\nWebsite: http://bwlehrpool.hs-offenburg.de/");
txtpnVersionVBuilddate.setEditable(false);
txtpnVersionVBuilddate.setBackground(SystemColor.menu);
txtpnVersionVBuilddate.setBounds(62, 95, 224, 90);
diff --git a/Dozentenmodul/src/models/Version.java b/Dozentenmodul/src/models/Version.java
new file mode 100644
index 00000000..b44819e4
--- /dev/null
+++ b/Dozentenmodul/src/models/Version.java
@@ -0,0 +1,24 @@
+package models;
+
+public class Version {
+
+ private static String Version = "1.06";
+ private static String BuildDate = "04.09.2014";
+
+
+ public static String getVersion() {
+ return Version;
+ }
+ public static void setVersion(String version) {
+ Version = version;
+ }
+ public static String getBuildDate() {
+ return BuildDate;
+ }
+ public static void setBuildDate(String buildDate) {
+ BuildDate = buildDate;
+ }
+
+
+
+}