so now that I am using the computer at home with eclipse, I see the error "Can't read input file" should i try making a folder for the image or something else, cuz just putting in the image did not...
Type: Posts; User: godlynom
so now that I am using the computer at home with eclipse, I see the error "Can't read input file" should i try making a folder for the image or something else, cuz just putting in the image did not...
sorry was not near computer for while, and no it did not :/ still have the white frame screen
image = ImageIO.read(new File("ges.jpg"));
JLabel picLabel = new JLabel(new ImageIcon(image));
this adds the image to the label, oh, should i do a
add(picLabel); after that?
ah okay, will do that, thanks for that tip, and i am adding the Label when in the Frame class I say
BackgroundPanel panel = new BackgroundPanel();
frame.add(panel);
should I make a panel inside...
no, just the program wanted a try and catch
Hello all, I am making a 2D Scroller game, and I know how to accomplish it, however, having trouble setting an image to the background, no amount of videos or tutorials is helping. The image does not...