I'm a bit of a newbie in Java, but I'm working myself through a chatroom script and I'm not trying to add some things to it.

For instance, I want to play a sound when someone enters the chatroom.

I have found the place where the text is writing to the applet "User B has entered the channel" so that would be the obvious place to add it.

How can I do this?

I've opened the .java file in Visual Café but that one doesn't compile it at all. Importing files has been a problem, so I'd like to do it as simple as possible.

Just play a file - that's it.

Can anyone help? I'd really appreciate it. Me and my friends are starting a website with lots of crap so I'd be really proud to show my very own chatroom there!!!

Thanks already!