I have many JLabels (which includes ImageIcons) in a JPanel.
And this JPanel is only a panel on the GUI; there ar
See Doing Without a Layout Manager (Absolute Positioning) in the Java tutorials.
Creating a container without a layout manager involves the following steps.
- Set the container's layout manager to null by calling
setLayout(null).- Call the
Componentclass'ssetboundsmethod for each of the container's children.- Call the
Componentclass'srepaintmethod.