Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

Query about applet!

Thread view: 
Jack Dowson - 14 May 2007 10:03 GMT
Hello Everybody:
I write an applet to broadcast sound file,the sentences which are used
to achive this goal are:
AudioClip sound = getAudioClip(getDocumentBase(),"folder.wav");
sound.loop();

I can hear the voice through appletviewer,but when it comes to my
firefox,I could not get any voice,why?
I think here might have some settings of my firefox worked,then what are
they?

Thank you!
Dowson.
SadRed - 14 May 2007 10:24 GMT
> Hello Everybody:
> I write an applet to broadcast sound file,the sentences which are used
[quoted text clipped - 9 lines]
> Thank you!
> Dowson.

Are other parts of the applet viewable on the Firefox browser?
Jack Dowson - 14 May 2007 15:16 GMT
> Are other parts of the applet viewable on the Firefox browser?

Thank you.Other parts are viewable.
Dowson.
Andrew Thompson - 14 May 2007 12:48 GMT
...
>I write an applet

I recommend you don't.  My estimation is that you
do not yet have a good grasp of core Java and GUI'd
applications, and I would recommend a sound
knowledge of both before attempting applets.

>..to broadcast sound file, ..

Embedding sound files in web pages?  That is
very 'last millenium'.  The visitors will hate it.
...
>I can hear the voice through appletviewer,but when it comes to my
>firefox,I could not get any voice,why?

Do you get any stacktrace?  Why not?
Do you see the Java console?  

If not, enable it from the Java Control Panel.  See..
Start | Settings | JCP | Advanced (tab) | Java Console (item)
..make sure it is set to.. 'Show Console'.

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Jack Dowson - 14 May 2007 15:36 GMT
> I recommend you don't.  My estimation is that you
> do not yet have a good grasp of core Java and GUI'd
> applications, and I would recommend a sound
> knowledge of both before attempting applets.

Thanks for your advice to the point,really.

> Do you get any stacktrace?  Why not?
> Do you see the Java console?  
>
> If not, enable it from the Java Control Panel.  See..
> Start | Settings | JCP | Advanced (tab) | Java Console (item)
> .make sure it is set to.. 'Show Console'.

You are really experienced,the voice came out.
Why?
Thank you.
Dowson.
Dag Sunde - 14 May 2007 17:43 GMT
>> I recommend you don't.  My estimation is that you
>> do not yet have a good grasp of core Java and GUI'd
[quoted text clipped - 12 lines]
> You are really experienced,the voice came out.
> Why?

I can't determine if that "Why?" is sarcasm or not,
so I'll answer as if it isn't... ;-)

Are you asking Why to Andrew's questions about stacktrace
and console?

* Why stacktrace is important: Because it might contain the
 exact information on what went wrong.
* If you don't get any stacktrace, why not? It might be that
 your code catches and supress any error messages it shouldn't.
 Thereby hiding what went wrong.
* Do you see the Java console? Because Applets shows it's
 stacktraces in the Java console window, so you need it
 for debugging.

HTH...

Signature

Dag.

Jack Dowson - 15 May 2007 15:11 GMT
Above all,thank you for your answer.

> I can't determine if that "Why?" is sarcasm or not,
> so I'll answer as if it isn't... ;-)
Of course it's not a satire.I never do that.

> * Why stacktrace is important: Because it might contain the
>   exact information on what went wrong.
[quoted text clipped - 4 lines]
>   stacktraces in the Java console window, so you need it
>   for debugging.

Thank you again.
Dowson.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.