/** * @inheritDoc */ @Override protected void paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { if (drawHorizontalLines) { super.paintHorizontalPartOfLeg(g, clipBounds, insets, bounds, path, row, isExpanded, hasBeenExpanded, isLeaf); } }
@Override protected void paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { // see comment for paintVerticalPartOfLeg() Rectangle rect = tree.getBounds(); rect.x = 0; rect.y = 0; super.paintHorizontalPartOfLeg(g, rect, insets, bounds, path, row, isExpanded, hasBeenExpanded, isLeaf); }