Add selection feature. The selected ElementPanel is drawn in blue. Also remove the UmlPanel layout: now elements are free and aren't replaced for each repaint()
Try to add a field into class, and generate this field into source code