Yes as javaaddict suggested create a class may be name it Travel which has the following fields
class Travel { String destination; };
Without the semi-colon at the end of he brackets.
Yes as javaaddict suggested create a class may be name it Travel which has the following fields
class Travel { String destination; };
Without the semi-colon at the end of he brackets.
Crunchie
Crunchie is the person that can fix almost any virus, spyware, or other nasty problem. He has over 6000 posts is the Virus, Spyware and other nasties forum. He has almost limitless patience when it comes to computer illiteracy and users problems. If you have a virus related problem he can fix it. He is also a Proud member of ASAP (Alliance of Security Analysis Professionals). (Which you can find the link to in his signature).
4502
4500
game
I think you should get rid of the semi-colon in red.
public Inventory3();
{
}
Chocolate sauce
Welcome!
This thread is months old and you are answering for someone else, after they answered. If you have a problem please create your own thread.
some
this will be my last virus I think. I'll never released any again :)
Good. We don't need any more viruses in this world.
dome
Anything is possible on Daniweb. :)
I don't think it matters that you prefer to stop it with your computer. Do what masijade said.
Black pastrami on rye bread. Coffee Ice cream.
Is this what you mean?
Image a;
public void init() {
a = getImage(getDocumentBase(), "a.jpg");
}
public void paint(Graphics g){
g.drawImage(a, x, y, width, height, this);
}
AudioClip a;
public void init() {
a = getImage(getDocumentBase(), "a.wma");
a.play();
}
You need to make sure the files are in the same package.
Not for me (FF2). It does work however if I switch to IE7.
4496
comb
I think what you are looking for is double buffering. I have used the following code before in my applets where I used a listener. I hope it works for you.
public void update(Graphics g) {
Graphics offgc;
Image offscreen = null;
Dimension d = size();
offscreen = createImage(d.width, d.height);
offgc = offscreen.getGraphics();
offgc.setColor(getBackground());
offgc.fillRect(0, 0, d.width, d.height);
offgc.setColor(getForeground());
paint(offgc);
g.drawImage(offscreen, 0, 0, this);
}
home
4494
4492
hole
Dumb is an accurate way to describe flies.
That is cheating and against Daniweb policy.
Welcome to both of you!
hall