@Override
 protected void paintClientArea(Graphics graphics) {
   super.paintClientArea(graphics);
   paintConnections(graphics);
   graphics.restoreState();
 }