Clipping A Tree

Hey guys I was wondering what would be the best way to do this.
If you could post some solutions below that would be great.
Thanks.

What do you mean by clipping a tree? what are you trying to do?

Trying to clip one of my sprites. I tried to do it this way.

		g2d.clip(rect);
		g2d.draw(rect);

and draw a rectangle around the sprite, but that didn’t work either.