8133514: Update NervousText demo to use java.version System property
authorprr
Thu, 13 Aug 2015 12:27:06 -0700
changeset 32290 ea4513305edb
parent 32289 e7e19bfe2948
child 32291 31ce4fec9b3e
8133514: Update NervousText demo to use java.version System property Reviewed-by: serb, iris
jdk/src/demo/share/applets/NervousText/NervousText.java
jdk/src/demo/share/applets/NervousText/example1.html
--- 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>