I'm trying to add an image to the top of my GUI as a logo.
I tried to put it in a JPanel then add the JPanel at the top of the GUI, the only problem is that my image isnt going into my JPanel.
Heres my code for it
image = new ImageIcon("reboot_logo.jpeg");
JPanel imagePanel = new JPanel();
JLabel icon = new JLabel();
Container cp = getContentPane();
cp.setLayout(new GridLayout(3, 1));