jasimp 427 Senior Poster Featured Poster

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.

peter_budo commented: Nicely spoted... +7
jasimp 427 Senior Poster Featured Poster

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).

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

4502

jasimp 427 Senior Poster Featured Poster

-850

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

-847

jasimp 427 Senior Poster Featured Poster

4500

jasimp 427 Senior Poster Featured Poster

game

jasimp 427 Senior Poster Featured Poster

-845

jasimp 427 Senior Poster Featured Poster

Try here or here. Read what each section is about and pick which one sounds more appropriate for what you are looking for.

jasimp 427 Senior Poster Featured Poster

I think you should get rid of the semi-colon in red.

public Inventory3();

{

}
jasimp 427 Senior Poster Featured Poster

Chocolate sauce

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

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.

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

-840

jasimp 427 Senior Poster Featured Poster

some

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

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.

jasimp 427 Senior Poster Featured Poster

dome

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Anything is possible on Daniweb. :)

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

I don't think it matters that you prefer to stop it with your computer. Do what masijade said.

jasimp 427 Senior Poster Featured Poster

Black pastrami on rye bread. Coffee Ice cream.

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

I am more familiar with Applets but this should help with sound and to get an Image use

img = Toolkit.getDefaultToolkit().getImage("file");
jasimp 427 Senior Poster Featured Poster

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.

venomlash commented: He just seems to know this stuff... +2
jasimp 427 Senior Poster Featured Poster

Thanks. It worked.

jasimp 427 Senior Poster Featured Poster

Not for me (FF2). It does work however if I switch to IE7.

jasimp 427 Senior Poster Featured Poster

4496

jasimp 427 Senior Poster Featured Poster

comb

jasimp 427 Senior Poster Featured Poster

-837

jasimp 427 Senior Poster Featured Poster

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);

  }
jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

-832

jasimp 427 Senior Poster Featured Poster

home

jasimp 427 Senior Poster Featured Poster

4494

jasimp 427 Senior Poster Featured Poster

-829

jasimp 427 Senior Poster Featured Poster

4492

jasimp 427 Senior Poster Featured Poster

hole

jasimp 427 Senior Poster Featured Poster

-827

jasimp 427 Senior Poster Featured Poster

Dumb is an accurate way to describe flies.

jasimp 427 Senior Poster Featured Poster

That is cheating and against Daniweb policy.

jasimp 427 Senior Poster Featured Poster

Welcome to both of you!

jasimp 427 Senior Poster Featured Poster

hall

jasimp 427 Senior Poster Featured Poster

-824