{ String s = e.getActionCommand(); int index = Integer.parseInt(s); try { switch (index) { case RENDERING: showRendering(); break; case SAVE_AS: showImageSaver(); break; case INSPECTOR: showInspector(); break; case VIEWER3D: showImage3DViewer(); break; case MOVIE: showMovie(); break; } } catch(NumberFormatException nfe) { throw new Error("Invalid Action ID "+index, nfe); } }
{ String s = e.getActionCommand(); int index = Integer.parseInt(s); try { switch (index) { case RENDERING: showRendering(); break; case SAVE_AS: showImageSaver(); break; case INSPECTOR: showInspector(); break; case VIEWER3D: showImage3DViewer(); break; case MOVIE: showMovie(); break; case ROI: showROI(); break; } } catch(NumberFormatException nfe) { throw new Error("Invalid Action ID "+index, nfe); } }
	public void actionPerformed(ActionEvent e) 	{		String s = e.getActionCommand();		int index = Integer.parseInt(s);		try {		   switch (index) { 				case RENDERING:					showRendering(); break; 					case SAVE_AS:					showImageSaver(); break;				case INSPECTOR:					showInspector(); break;				case VIEWER3D:					showImage3DViewer(); break;				case MOVIE:					showMovie(); break;		   }		} catch(NumberFormatException nfe) {   			throw new Error("Invalid Action ID "+index, nfe);		} 	}