@Override
    public Rectangle getPathBounds(JTree tree, TreePath path) {
      Rectangle bounds = super.getPathBounds(tree, path);
      if (bounds != null) {
        bounds.width = Math.max(bounds.width, tree.getWidth() - bounds.x);
      }
      return bounds;
    }
@Override
    public Rectangle getPathBounds(JTree tree, TreePath path)