I am using ImageIcon to display an image, however, the image does not appear. See the code i am using below.
Can you see what the problem is?
The receivedImage will be taken out of an object it is stored in, and then i want to display it in the GUI I have created.
I am new to java, so I hope you can understand my explanation.
// Display image ImageIcon receivedIcon = new ImageIcon(this.receivedImage); receivedImageLabel = new JLabel(receivedIcon); this.setSize(300,300); this.getContentPane().add("North", receivedImageLabel); this.setVisible(true); this.show(); // End of display image