Transpiled version (5035L) is out of date.
1 | // TODO: typing a number doesn't seem to work? |
2 | static <A> JSpinner jListSpinner(L<A> entries, A defaultValue default first(entries)) { |
3 | ret swing(-> { |
4 | new JSpinner s; |
5 | s.setModel(new SpinnerListModel(entries)); |
6 | if (contains(entries, defaultValue)) |
7 | setSpinnerValue(s, defaultValue); |
8 | ret s; |
9 | }); |
10 | } |
Began life as a copy of #1006937
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1033691 |
Snippet name: | jListSpinner |
Eternal ID of this version: | #1033691/6 |
Text MD5: | e8ff211ad8765a059400536a7b521e0f |
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:37:04 |
Source code size: | 327 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 177 / 270 |
Version history: | 5 change(s) |
Referenced in: | [show references] |