Collaborative painting program in Java