add comment in BorderPainter.java