Libraryless. Click here for Pure Java version (9645L/53K).
1 | static JSpinner bindLiveValueToSpinner(IVarWithNotify<Int> lv, JSpinner spinner) {
|
2 | onChange(spinner, -> lv.set(intFromSpinner(spinner))); |
3 | lv.onChange(-> setSpinnerValue(spinner, lv!)); |
4 | ret spinner; |
5 | } |
Began life as a copy of #1018839
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033703 |
| Snippet name: | bindLiveValueToSpinner |
| Eternal ID of this version: | #1033703/3 |
| Text MD5: | 65b7142ceda88704e7347e6753ad3f5e |
| Transpilation MD5: | d32f165edbf36ab8c5c2795f3858c56e |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-07-25 21:30:59 |
| Source code size: | 209 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 425 / 547 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |