Download this source file


/*
   <APPLET CODE="Version" WIDTH="400" HEIGHT="100">
   </APPLET>
*/
// This applet displays the version of Java (the JVM) in your browser.
// by obtaining information from the System Property list.
//
// (C) 1999 by Wayne Pollock, Tampa Florida USA.  All Rights Reserved.

import java.applet.*;
import java.awt.*;

public class Version extends Applet
{

   public void init ()
   {
      String version = System.getProperty( "java.vendor" )
        + " Version ";
      version += System.getProperty( "java.version" );

      Label title = new Label( "Java Virtural Machine Version Information",
                               Label.CENTER );
      title.setFont( new Font( "Serif", Font.BOLD, 18 ) );
      add( title );

      Label versionLabel = new Label( version, Label.CENTER );
      versionLabel.setFont( new Font( "Serif", Font.PLAIN, 16 ) );
      add( versionLabel );
   }
}