Warning: session_start(): open(/var/lib/php/sessions/sess_bbkn3k0mvgu0lea5n8dsr70629, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
sS background = #1009946;
static IVar text;
static JTextField tf;
static JDesktopPane desktop;
p-nimbus {
text = persistentVar("Text", "Show me a window!");
onEnter(tf = bindTextFieldToVar(text, jcenteredtextfield(text!)), f go);
desktop = jTiledBackgroundDesktopPane(background);
autoFixDesktopPane(desktop);
addFullSizeComponent(desktop, jtransparent_recursive(jTopCenter(hstackWithSpacing(withTopMargin(60,
hstackWithSpacing(jMinWidth(400, setFontSize(30, tf)),
jbutton("OK", f go)/*,
jbutton("Exit", f cleanKill)*/))))));
cleanExitOnFrameClose(showFrame/*MaximizedFrame*/(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);
L nodes = web_allOperands(indexedNodes("Things to do on user input"));
for (WebNode node : nodes) {
S fname = "action_" + camelCase(web_text(node));
if (isStandardFunction(fname))
print("Can call: " + fname);
else
print("Can't call: " + web_text(node) + " / " + fname);
}
}