HelloWorld for the ArcMap status line


Details

This code does "Hello World" to the Arc status line (the grey area at the bottom of the application (this writes to the lower left)


Original author/s: Andy Evans
License: none


Imports and instance variables

	import com.esri.arcgis.framework.*;
	import com.esri.arcgis.system.*;

	private IApplication app;

Code

	@Override
	public void onClick() throws IOException, AutomationException {
		
		try {
			IStatusBar statusBar  = app.getStatusBar();
			statusBar.setMessage(0, "Hello World");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	
	

	@Override 
	public void init(IApplication app){
		this.app = app; 	
	}