blob: f48e45883fd95673ef43f8c909a6b6d18aaacbd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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);
}
}
|