changeset 32290:ea4513305edb

8133514: Update NervousText demo to use java.version System property Reviewed-by: serb, iris
author prr
date Thu, 13 Aug 2015 12:27:06 -0700
parents e7e19bfe2948
children 31ce4fec9b3e
files jdk/src/demo/share/applets/NervousText/NervousText.java jdk/src/demo/share/applets/NervousText/example1.html
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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>