// runnable must implement a "run(S)" method static JFrame swingChoose(L<S> options, fO runnable) { final JFrame[] frame = new JFrame[1]; new L parts; for (final S s : options) parts.add(newButton(s, runnable { frame[0].dispose(); callOpt(runnable, "run", s); })); ret frame[0] = showPackedFrame("Please choose", vgrid(parts)); }
Began life as a copy of #1003293
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: | #1003298 |
Snippet name: | swingChoose - offer choices in Swing window |
Eternal ID of this version: | #1003298/1 |
Text MD5: | 6a39295d355af6edad0143d9bf28008b |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-06-17 19:12:25 |
Source code size: | 367 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 542 / 521 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |