Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1033692 // jPowersOfTwoSpinner

JavaX fragment (include) [tags: use-pretranspiled]

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));
}

Author comment

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: 170 / 246
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)