System.out.println("MasterCanvas: setCurrent " + nextDisplayable );
System.out.println("MasterCanvas: setCurrent " + nextDisplayable  + ", on display " + display );
	public static void setCurrent( Display display, Displayable nextDisplayable ) {		//#debug		System.out.println("MasterCanvas: setCurrent " + nextDisplayable );		//if ( nextDisplayable == instance ) {		//	display.setCurrent( nextDisplayable );		//	return;		//}		if ( ! (nextDisplayable instanceof AccessibleCanvas) ) {			if (instance != null && instance.currentCanvas != null) {				if (instance.currentDisplayable != nextDisplayable ) {					//#debug					System.out.println("MasterCanvas: setting instance.currentCanvas to NULL!!!");					instance.currentCanvas.hideNotify();					instance.currentCanvas = null;					instance.currentDisplayable = null;				}			}			//#debug			System.out.println("MasterCanvas: setting native next displayable " + nextDisplayable );			display.setCurrent( nextDisplayable );			return;		}		AccessibleCanvas oldCanvas = null;		if ( instance == null ) {			instance = new MasterCanvas();		} else {			oldCanvas = instance.currentCanvas;		}							AccessibleCanvas canvas = ( (AccessibleCanvas) nextDisplayable );		//#if polish.usePolishGui			if (nextDisplayable instanceof Alert && instance.currentDisplayable != nextDisplayable) {				Alert alert = (Alert)nextDisplayable;				if (alert.nextDisplayable == null) {					alert.nextDisplayable = instance.currentDisplayable;				}			}		//#endif		canvas.showNotify();		instance.currentCanvas = canvas;		instance.currentDisplayable = nextDisplayable;//		if (nextDisplayable instanceof Alert) {//			System.out.println("MasterCanvas: setting Alert " + nextDisplayable + " as next screen!");//		}				if ( oldCanvas != null ) {			oldCanvas.hideNotify();		}		if ( !instance.isShown() ) {			display.setCurrent( instance );		} else {			instance.repaint();		}	}