I am studying swing in java. I would like to display two images but at the moment my code only shows one image. How would I go about displaying two separate images inside my JFrame?
Here is the code that I currently use to display the image:
public void init_background(BufferedImage imageBuf) {
jFrame.setContentPane(new JLabel(new ImageIcon(imageBuf)));
...
}
How should I change it to allow multiple images to be shown inside my JFrame?