
and here is one more shot, this time two iso-surfaces are shown on a protein.
import javax.swing.*;
public class Hello {
public static void main(String [] args) {
if (args.length == 0) {
try {
System.out.println("I now have : " + Runtime.getRuntime().maxMemory());
Process p = new ProcessBuilder("java", "-Xmx256m", "Hello", "memory").start();
} catch(Exception e) {
e.printStackTrace();
}
} else {
JFrame f = new JFrame("Hi! I have more memory!: " + Runtime.getRuntime().maxMemory());
f.setVisible(true);
} // end if
}
}