refactor: use Rectangle#getMaxX() instead of (double) (r.x + r.width)
refactor: use Rectangle#getMaxX() instead of (double) (r.x + r.width)

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