/* TerrainViewer.java Written February 2004 by John Bell for CS 526 This module is the controller portion of the MVC Paradigm. It creates the UI and the Model, and then lets them run. */ public class TerrainViewer { public static void main( String args[ ] ) { ModelLauncher theLauncher = new ModelLauncher( ); theLauncher.start( ); TerrainViewerUI UI = new TerrainViewerUI( "Terrain Viewer Controller" ); UI.setSize( 450,400 ); UI.show( ); return; } } class ModelLauncher extends Thread { native static void initModel( ); static { System.loadLibrary("TerrainViewerModel"); } public void run( ) { initModel( ); } } // end of class ModelLauncher