refactor: use Math.min(i, max) instead of if (i > max) {i = max;}
refactor: use Math.min(i, max) instead of if (i > max) {i = max;}

aterai/java-swing-tips,aterai/java-swing-tips,aterai/java-swing-tips,aterai/java-swing-tips