/** Called when the View is to be disposed. */ public void dispose() { instance.dispose(); instance = null; super.dispose(); }