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