@Override
  public void repaint() {
    updatePathEllipsis();
    super.repaint();
  }
Updates the shortened path string depending on the current width.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/CPathLabel.java