Vote count:
0
Im following a tutorial from kilobolt and this is the part of my code that having a problem
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package firstgame;
import java.applet.Applet;
import java.awt.Color;
import java.awt.Frame;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.Graphics;
import java.awt.Image;
import java.net.URL;
import javax.imageio.*;
/**
*
* @author Chris
*/
public class StartingClass extends Applet implements Runnable, KeyListener{
private Robot robot;
private Heliboy hb, hb2;
private Image image, currentSprite, character, characterDown, characterJumped, background, heliboy;
private Graphics second;
private URL base;
private static Background bg1, bg2;
@Override
public void init() {
setSize(800, 480);
setBackground(Color.black);
setFocusable(true);
addKeyListener(this);
Frame frame = (Frame) this.getParent().getParent();
frame.setTitle("Cardarello's Robot Game");
try{
base = getDocumentBase();
}catch(Exception e){
System.out.println("cant find image");
}
//Image Setups
character = getImage(base, "data/heliboy.png");
currentSprite = character;
}
in the tutorial he says to save the images to a folder in the src folder named data which i made and placed the images into but when i try to reference those image like heliboy = getImage(base, "data/heliboy.png"); they do not show up it only work if i use a URL like this character = getImage(base, "http://ift.tt/1zCz5Pm");
can anyone help me find out my they dont show up when i try to use the onces in the data folder??
asked 22 secs ago
Java and Images
These tough questions are the ones that show up on your credit report and see the lenders when they have access to your credit report. Soft query shows on your credit report only at the request itself and not to show creditors. Soft request may come from your existing creditors, who follow their own expense, companies that want to offer you promotional applications for credit, and each time you request a copy of your credit report.
RépondreSupprimerFor more info :-
http://www.creditreportcheckscore.co.uk
http://www.oxwall.a6.pl/link/625
http://www.lintasblog.com/blogs/post/5370