Update element in ElementJPanel type.