Updated code to comply with recent JavaLib graphics code changes.