Download Jar. Libraryless. Click here for Pure Java version (9241L/62K).
1 | !7 |
2 | |
3 | sS background = #1009946; |
4 | static IVar<S> text; |
5 | static JTextField tf; |
6 | static JDesktopPane desktop; |
7 | |
8 | p-nimbus-noconsole { |
9 | text = persistentVar("Text", "Show me a window!"); |
10 | |
11 | onEnter(tf = bindTextFieldToVar(text, jcenteredtextfield(text!)), f go); |
12 | desktop = jTiledBackgroundDesktopPane(background); |
13 | addFullSizeComponent(desktop, jtransparent_recursive(jTopCenter(hstackWithSpacing(withTopMargin(60, |
14 | hstackWithSpacing(jMinWidth(400, setFontSize(30, tf)), |
15 | jbutton("OK", f go), |
16 | jbutton("Exit", f cleanKill))))))); |
17 | cleanExitOnFrameClose(showFullScreen(desktop)); |
18 | focus(tf); |
19 | } |
20 | |
21 | svoid go { callStaticAnswerMethod(getText(tf)); } |
22 | |
23 | answer { |
24 | if "show me a window" |
25 | addInternalFrame(desktop, "Here it is.", random(100, desktop.getWidth()-100-300), 400, 300, 200); |
26 | } |
Began life as a copy of #1009947
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, imzmzdywqqli, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009950 |
Snippet name: | lalala 7 [testing Nimbus L&F] |
Eternal ID of this version: | #1009950/18 |
Text MD5: | dfcbda0bcabf9362c552d7ec49e7353a |
Transpilation MD5: | 32641838ed8681e5408903e4eceb6240 |
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 15:22:42 |
Source code size: | 816 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 551 / 1271 |
Version history: | 17 change(s) |
Referenced in: | [show references] |