public static void main ( String [ ] args ) throws IOException { MonaLisaApplet gui = new MonaLisaApplet ( ) ; // If a URL is specified as an argument, use that image. Otherwise use the default Mona Lisa picture. URL imageURL = args . length > 0 ? new URL ( args [ 0 ] ) : MonaLisaApplet . class . getClassLoader ( ) . getResource ( IMAGE_PATH ) ; gui . targetImage = ImageIO . read ( imageURL ) ; gui . displayInFrame ( "Watchmaker Framework - Mona Lisa Example" ) ; }
Entry point for running this example as an application rather than an applet .