Transpiled version (7294L) is out of date.
| 1 | srecord noeq ComboBoxAndButton(JComboBox cb, S buttonText, IVF1<S> onEnter) {
 | 
| 2 | JButton btn; | 
| 3 | |
| 4 |   Runnable makeAction() {
 | 
| 5 | ret -> pcallF(onEnter, getText(cb)); | 
| 6 | } | 
| 7 | |
| 8 |   swappable JComponent wrapButton(JComponent button) { ret button; }
 | 
| 9 | |
| 10 |   JComponent makePanel() {
 | 
| 11 | ret centerAndEastWithMargin(cb, wrapButton(btn)); | 
| 12 | } | 
| 13 | |
| 14 |   JComponent get() {
 | 
| 15 | Runnable r = makeAction(); | 
| 16 | onEnter(cb, r); | 
| 17 | btn = jbutton(buttonText, r); | 
| 18 | ret makePanel(); | 
| 19 | } | 
| 20 | } | 
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: | 554 / 671 | 
| Version history: | 3 change(s) | 
| Referenced in: | [show references] |