please include function showControls. static void hideControls() { swing { removeFromConsole2(showControls_controls); showControls_controls = null; } }