i'm using Netbeans and it's GUI designer tool,i want to add a picture to my background JPanel but i can't get into the code (It's grayed out and unchangeable) so the normal "add image" won't work. Also i tried to use a Label but that didn't work out either.
Or is simply my code to add it wrong?
BufferedImage biBackground= ImageIO.read(new File("path-to-file"));
JLabel biBackground= new JLabel(new ImageIcon(myPicture));
add(biBackground);
so i don't know where to put my code, because i cant add something to the "Initcomponents()" method
I'm sorry for the dumb question.