8133514: Update NervousText demo to use java.version System property
Reviewed-by: serb, iris
--- a/jdk/src/demo/share/applets/NervousText/NervousText.java Thu Aug 13 12:12:10 2015 -0700
+++ b/jdk/src/demo/share/applets/NervousText/NervousText.java Thu Aug 13 12:27:06 2015 -0700
@@ -72,8 +72,9 @@
public void init() {
banner = getParameter("text");
if (banner == null) {
- banner = "HotJava";
+ banner = "Java Development Kit ";
}
+ banner += System.getProperty("java.version", "");
int bannerLength = banner.length();
StringBuilder bc = new StringBuilder(bannerLength);
--- a/jdk/src/demo/share/applets/NervousText/example1.html Thu Aug 13 12:12:10 2015 -0700
+++ b/jdk/src/demo/share/applets/NervousText/example1.html Thu Aug 13 12:27:06 2015 -0700
@@ -1,7 +1,7 @@
<title>Nervous Text 1.1</title>
<hr>
<applet code="NervousText.class" width=534 height=50>
-<param name=text value="Java SE Development Kit (JDK) 7.0">
+<param name=text value="Java Development Kit (JDK) ">
</applet>
<hr>
<a href="NervousText.java">The source.</a>