Libraryless. Click here for Pure Java version (5153L/29K).
static <A> JSpinner jPowersOfTwoSpinner(int min default 1, int max, int defaultValue) { var powers = powersOfTwoUpTo(max); if (min > 1) powers = filter(powers, x -> x >= min); ret rightAlignSpinner(jListSpinner(powers, defaultValue)); }
Began life as a copy of #1033691
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033692 |
Snippet name: | jPowersOfTwoSpinner |
Eternal ID of this version: | #1033692/6 |
Text MD5: | cced802077053ea73810c42c88e010b0 |
Transpilation MD5: | d35a7f7d330002f63be5d1c5940665f6 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-11 19:10:27 |
Source code size: | 246 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 169 / 245 |
Version history: | 5 change(s) |
Referenced in: | [show references] |