refactor: use AtomicInteger instead of int for counters
refactor: use AtomicInteger instead of int for counters

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