Here is my problem:
I have an application that every iteration it returns to me a list of images. The imagens have different sizes and the number of images to be shown varies every time.
Is there a way to show in a jFrame all the images without knowing the number of jPanels to create? Is there an easy way to do that?
Obs.: The images should be shown at same time, like side by side, or listed, because they are used for comparisson purposes.
Obs.2: The number of images to be shown is around 20-60 for each time.
Thanks
From your question I assume that you are able to show images in a
JPanel. In that case, you can keep a list ofJPanelsand dynamically update this list. Of course, the layout to be drawn on theJFrameis completely up to you, but for a job like this one, you might want to useGridLayoutorBoxLayout.To keep a list of JPanels: