Swing-based 2D line/polygon editor