!7 cmodule LockScreen > DynFullscreen { transient JFrame fullScreenFrame; void goFullscreen enter { if (frame != null) activateFrame(fullScreenFrame); fullScreenFrame = showFullScreen(fullscreenVisualize()); onFrameClose(fullScreenFrame, r { fullScreenFrame = null; }); } JComponent fullscreenVisualize() { null; } void exitFullscreen enter { disposeFrame(fullScreenFrame); } }