diff options
author | Sven Gothel <[email protected]> | 2000-11-18 06:43:49 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2000-11-18 06:43:49 +0000 |
commit | 880653d31a8f1ff8384fdbc75b84934bceecfdb8 (patch) | |
tree | bdafb71416f176d2a4b73bf716c9dc3f13685a8b /Installer/MSJVMVersionApplet.java |
Initial revision
Diffstat (limited to 'Installer/MSJVMVersionApplet.java')
-rw-r--r-- | Installer/MSJVMVersionApplet.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Installer/MSJVMVersionApplet.java b/Installer/MSJVMVersionApplet.java new file mode 100644 index 0000000..f48e458 --- /dev/null +++ b/Installer/MSJVMVersionApplet.java @@ -0,0 +1,33 @@ +
+import java.awt.*;
+import java.util.*;
+import java.awt.event.*;
+import java.applet.*;
+
+public class MSJVMVersionApplet extends Applet
+{
+ public void init()
+ {
+ Properties props =
+ com.ms.util.SystemVersionManager.getVMVersion();
+ String build = props.getProperty("BuildIncrement");
+ int buildI = 0;
+ try {
+ buildI = Integer.valueOf(build).intValue();
+ } catch (Exception ex) {}
+ String descr = props.getProperty("Description");
+ setLayout(new BorderLayout());
+ String state = null;
+ if(buildI>=3186)
+ state = "!!!! YOUR MS-JVM VERSION LOOKS FINE !!!!";
+ else
+ state = "!!!! YOUR MS-JVM VERSION IS TOO OLD, PLEASE UPDATE !!!!";
+ TextArea text = new TextArea(
+ descr + "." + build + "\n"+
+ "Build: " + build + "\n\n" + state);
+
+ add("Center", text);
+
+ setBackground(Color.white);
+ }
+}
|