Java application receiving shape from a server and showiing them on a panel