22.3. Using Java Classes Directly
// Invoke the static Java method System.getProperty( ) var javaVersion = java.lang.System.getProperty("java.version");
Example 22-2. Scripting the built-in Java classes
var f = new java.awt.Frame("Hello World"); var ta = new java.awt.TextArea("hello, world", 5, 20); f.add("Center", ta); f.pack( ); f.show( );
Copyright © 2003 O'Reilly & Associates. All rights reserved.