!7 sS background = #1009946; static IVar text; static JTextField tf; static JDesktopPane desktop; p-awt-noconsole { nimbus(); text = persistentVar("Text", "Show me a window!"); tf = jcenteredtextfield(text!); onUpdate(tf, r { text.set(getText(tf)) }); onEnter(tf, f go); desktop = jTiledBackgroundDesktopPane(background); addFullSizeComponent(desktop, jtransparent_recursive( jfullcenter(withBottomMargin(550, centerAndEast(jMinWidth(400, setFontSize(30, tf)), withLeftMargin(10, jbutton("OK", f go))))))); 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); }