!7 sS background = #1009946; static IVar text; static JTextField tf; static JDesktopPane desktop; p-nimbus-noconsole { text = persistentVar("Text", "Show me a window!"); onEnter(tf = bindTextFieldToVar(text, jcenteredtextfield(text!)), f go); desktop = jTiledBackgroundDesktopPane(background); addFullSizeComponent(desktop, jtransparent_recursive(jTopCenter(hstackWithSpacing(withTopMargin(60, hstackWithSpacing(jMinWidth(400, setFontSize(30, tf)), jbutton("OK", f go), jbutton("Exit", f cleanKill))))))); cleanExitOnFrameClose(showFullScreen(desktop)); focus(tf); } svoid go { callStaticAnswerMethod(getText(tf)); } answer { if "show me a window" addInternalFrame(desktop, "Here it is.", random(100, desktop.getWidth()-100-300), 400, 300, 200); }