I want to create a print preview for a variable-size set of images in Java. My first approach (in dev mode) was to create snapshots of the images in different JLabels (just as a quick developer solution).
But for the production solution I need to create a more efficient and elegant way to display the images for the user of this standalone software. So I was thinking in showing him maybe 7-8 snapshots of the images to be printed on each JLabel.
Is there another way to do this? (Speaking of Java GUI components)
You can store these
Imagesin some sort ofList<Image>, such asArrayList<Image>. Please read the Graphics2D tutorial, which contains related examples. There are other examples here.