Multiple choice

To increase/decrease the space between a component and the container window, the ___ method can be called.

  1. Insets (int, int, int, int)

  2. Insets (int, int, int)

  3. Insets (int, int)

  4. Insets (int)

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The Insets class constructor takes four integer parameters (top, left, bottom, right) that specify the padding between a component and the edges of its container. This allows precise control over the spacing and positioning of components within a layout.