```java
private void drawBox(String name, double cx, double cy) {
  GLabel label = new GLabel(name, cx, cy);
  double dx = label.getWidth()/2;
  double dy = label.getAscent()/2;
  label.move(-dx, dy);
  add(label);
}
```