What method is used to display an image on a `JLabel`?
You can use the `add()` method on `JLabel` to display an image, by passing the `ImageIcon` as an argument.
Thatâ€™s partially correct. You do use `add()` to place components in a container, but the correct method for displaying an image on `JLabel` is `setIcon()`.
Can you explain the difference between `setIcon()` and `add()` in terms of displaying images?