refactor: use Rectangle#getMaxY() instead of r.y + r.height
refactor: use Rectangle#getMaxY() instead of r.y + r.height

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