• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 892
  • Last Modified:

Java making bing / ding sound on modal dialogs

I have 2 Model dialog open in an applet, one modal dialog opening another, whenever I close top level modal dialog I get ding sound, is there a way to suppress this sound ?
0
jseemore
Asked:
jseemore
  • 7
  • 4
  • 4
2 Solutions
 
objectsCommented:
i suspect the sound is coming from the OS, and not Java
0
 
jseemoreAuthor Commented:
It happens only with applets,  JNLP clients works fine.  Also not on all machines.
0
 
CEHJCommented:
Check the Sounds settings in Control Panel if using Windows
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
jseemoreAuthor Commented:
Changing setting on client machine is not an option as it will affect other application also and they don't want to mute sound for our applet.
0
 
CEHJCommented:
That's the only way you can do it
0
 
jseemoreAuthor Commented:
Is there no way to suppress this sound in code itself ?
0
 
CEHJCommented:
No - not practicably
0
 
objectsCommented:
> Is there no way to suppress this sound in code itself ?

As I mentioned originally its nothing to do with Java, so you can't suppress it with code
0
 
jseemoreAuthor Commented:
In windows dialogs when we click on some modal dialog when other is still open it make ding sound, but in java it is happening even when  I close dialog using cancel and ok button. Also why it doesn't happen with JNLP client ?
0
 
CEHJCommented:
They could be using different window classes or something else is different in each scenario as for as Windows is concerned
0
 
objectsCommented:
> Also why it doesn't happen with JNLP client ?

because its doesn't involve the browser (which is what is beeping)
0
 
jseemoreAuthor Commented:
Found the solution, is was to do with parents on different dialog and specially mixing of Frame and Dialog as parent.
0
 
jseemoreAuthor Commented:
Thanks for helping.
0
 
jseemoreAuthor Commented:
Comments helped me finding the solution, no direct solution though.
0
 
objectsCommented:
no worries, glad I could help :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 7
  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now