Download Jar. Libraryless. Click here for Pure Java version (9079L/61K).
!7 sS background = #1009946; static IVar<S> text; static JTextField tf; static JDesktopPane desktop; p-awt { text = persistentVar("Text", "Show me a window!"); tf = jcenteredtextfield(text!); onUpdate(tf, r { text.set(getText(tf)) }); onEnter(tf, f go); desktop = jTiledBackgroundDesktopPane(background); final JPanel bg = jtransparent_recursive( jfullcenter(withBottomMargin(550, centerAndEast(jMinWidth(400, setFontSize(30, tf)), withLeftMargin(10, jbutton("Go", f go)))))); desktop.add(bg); desktop.setLayout(layoutManagerFromFunction(voidfunc(Container c) { bg.setBounds(0, 0, c.getWidth(), c.getHeight()); })); cleanExitOnFrameClose(showFullScreen(desktop)); focus(tf); hideConsole(); } 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); }
Began life as a copy of #1009944
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009947 |
Snippet name: | lalala 6 [OK, different background] |
Eternal ID of this version: | #1009947/7 |
Text MD5: | 4705fb782cb19574f1997c6c682569e3 |
Transpilation MD5: | 825ebff5f7e78faf2acdbd8f668bc08f |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-27 04:15:58 |
Source code size: | 963 bytes / 33 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 644 / 1341 |
Version history: | 6 change(s) |
Referenced in: | #1009950 - lalala 7 [testing Nimbus L&F] |