Check out example codes for "immagini java". It will help you in understanding the concepts better.

Code Example 1

public static void main(String[] args) {
		JFrame frame = new JFrame();
		frame.setTitle("titolo");
		frame.setLayout(new FlowLayout());
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		ImageIcon imageIcon = new ImageIcon("percorso");
		JLabel label = new JLabel(imageIcon);

		frame.add(label);
		frame.pack();
		frame.setVisible(true);
	}

Learn ReactJs, React Native from akashmittal.com