summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul
diff options
context:
space:
mode:
authorMichael Wilson2014-05-21 15:15:57 +0200
committerMichael Wilson2014-05-21 15:15:57 +0200
commita85bec18a2e425de66c9685af31b2d61f8e9fdec (patch)
treebd8e341449fe69f66a81d73bfd20bb17b6bd81a2 /Dozentenmodul
parentVerlinkung zum VMWare Player Download geht jetzt (diff)
downloadtutor-module-a85bec18a2e425de66c9685af31b2d61f8e9fdec.tar.gz
tutor-module-a85bec18a2e425de66c9685af31b2d61f8e9fdec.tar.xz
tutor-module-a85bec18a2e425de66c9685af31b2d61f8e9fdec.zip
Download-Links sind nun zentral in der Klasse "Links" festgelegt.
Diffstat (limited to 'Dozentenmodul')
-rw-r--r--Dozentenmodul/bin/gui/intro/VmWareLink_GUI.classbin6233 -> 5748 bytes
-rw-r--r--Dozentenmodul/src/gui/intro/VmWareLink_GUI.java17
-rw-r--r--Dozentenmodul/src/models/Links.java11
3 files changed, 16 insertions, 12 deletions
diff --git a/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class
index ac3b9414..dbfc1944 100644
--- a/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class
+++ b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class
Binary files differ
diff --git a/Dozentenmodul/src/gui/intro/VmWareLink_GUI.java b/Dozentenmodul/src/gui/intro/VmWareLink_GUI.java
index 41515eff..4d610587 100644
--- a/Dozentenmodul/src/gui/intro/VmWareLink_GUI.java
+++ b/Dozentenmodul/src/gui/intro/VmWareLink_GUI.java
@@ -44,8 +44,8 @@ public class VmWareLink_GUI extends JFrame {
private final JPanel contentPanel = new JPanel();
String[] result;
- String uriWindows="https://my.vmware.com/de/web/vmware/free#desktop_end_user_computing/vmware_player/6_0";
- String uriLinux="https://my.vmware.com/de/web/vmware/free#desktop_end_user_computing/vmware_player/6_0";
+ //String uriWindows="https://my.vmware.com/de/web/vmware/free#desktop_end_user_computing/vmware_player/6_0";
+ //String uriLinux="https://my.vmware.com/de/web/vmware/free#desktop_end_user_computing/vmware_player/6_0";
JCheckBox chckbxNewCheckBox;
private JButton btnWindows;
@@ -163,7 +163,7 @@ public class VmWareLink_GUI extends JFrame {
btnWindows.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
try {
- URI windows= new URI(uriWindows);
+ URI windows= new URI(Links.getUriWindows());
openWebpage(windows);
} catch (URISyntaxException e) {
// TODO Auto-generated catch block
@@ -179,7 +179,7 @@ public class VmWareLink_GUI extends JFrame {
btnLinux.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
try {
- URI windows= new URI(uriLinux);
+ URI windows= new URI(Links.getUriLinux());
openWebpage(windows);
} catch (URISyntaxException f) {
// TODO Auto-generated catch block
@@ -283,12 +283,5 @@ public class VmWareLink_GUI extends JFrame {
}
}
}// end openWebpage
-
- public static void openWebpage(URL url) {
- try {
- openWebpage(url.toURI());
- } catch (URISyntaxException e) {
- e.printStackTrace();
- }
- }
+
}// end class
diff --git a/Dozentenmodul/src/models/Links.java b/Dozentenmodul/src/models/Links.java
index dba1771d..8b11c0bc 100644
--- a/Dozentenmodul/src/models/Links.java
+++ b/Dozentenmodul/src/models/Links.java
@@ -4,6 +4,8 @@ public class Links {
private static String FAQ = "http://bwlehrpool.hs-offenburg.de/";
private static String OTRS = "https://bwlehrpool-otrs.rz.hs-offenburg.de//otrs/customer.pl";
+ private static String uriWindows="https://my.vmware.com/de/web/vmware/free#desktop_end_user_computing/vmware_player/6_0";
+ private static String uriLinux="https://my.vmware.com/de/web/vmware/free#desktop_end_user_computing/vmware_player/6_0";
public static String getFAQ() {
return FAQ;
@@ -12,4 +14,13 @@ public class Links {
public static String getOTRS() {
return OTRS;
}
+
+ public static String getUriWindows() {
+ return uriWindows;
+ }
+
+ public static String getUriLinux() {
+ return uriLinux;
+ }
+
}