Transpiled version (7294L) is out of date.
srecord noeq ComboBoxAndButton(JComboBox cb, S buttonText, IVF1<S> onEnter) { JButton btn; Runnable makeAction() { ret -> pcallF(onEnter, getText(cb)); } swappable JComponent wrapButton(JComponent button) { ret button; } JComponent makePanel() { ret centerAndEastWithMargin(cb, wrapButton(btn)); } JComponent get() { Runnable r = makeAction(); onEnter(cb, r); btn = jbutton(buttonText, r); ret makePanel(); } }
Began life as a copy of #1033579
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034932 |
Snippet name: | ComboBoxAndButton (center & east) - generalizes comboBoxAndButton. untested |
Eternal ID of this version: | #1034932/4 |
Text MD5: | baa0e16dcbe9e550cd6cb8258ec8d1b8 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-16 14:52:35 |
Source code size: | 481 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 123 / 195 |
Version history: | 3 change(s) |
Referenced in: | #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167) |