A bounding box is just a generic concept of the smallest rectangular area that contains a visual item. Most components are rectangular anyway, so their width/height and location are the bounding box. If it's a circle, then just imagine it in a square that fits the circle, that's the bounding box.
The java.awt.Rectangle class is used for this, and contains methods to check if another rectangle intersects with it.
> A bounding box is just a generic concept of the
> smallest rectangular area that contains a visual
> item. Most components are rectangular anyway, so
> their width/height and location are the bounding box.
> If it's a circle, then just imagine it in a square
> that fits the circle, that's the bounding box.
>
> The java.awt.Rectangle class is used for this, and
> contains methods to check if another rectangle
> intersects with it.
Okay, thanks. You wouldn't know of a Tutorial for this, would you?