Libraryless. Click here for Pure Java version (6839L/39K).
static JPanel textFieldAndButton(S defaultText, S buttonText, VF1<S> onEnter) { ret textFieldAndButton(jtextfield(defaultText), buttonText, onEnter); } static JPanel textFieldAndButton(JTextField tf, S buttonText, VF1<S> onEnter) { ret textFieldAndButton(tf, buttonText, vf1ToIVF1(onEnter)); } static JPanel textFieldAndButton(JTextField tf, S buttonText, IVF1<S> onEnter) { Runnable r = r { callF(onEnter, getText(tf)) }; ret centerAndEastWithMargin(onEnter(tf, r), jbutton(buttonText, r)); }
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019371 |
| Snippet name: | textFieldAndButton (center & east) |
| Eternal ID of this version: | #1019371/4 |
| Text MD5: | 839e241a195b28441ee24a8216820567 |
| Transpilation MD5: | 2232f06d557f6c677bdeae4566f5d01c |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-11-04 01:53:44 |
| Source code size: | 514 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 594 / 707 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |