I am working on a rather complicated Java application using Swing.
In some cases, unwanted sound signals appear without user intervention. No crashes, the application does not work fine, I respect EDT rules, etc.
However, in some cases you can hear a beep: I can do something stupidly by causing this beep, but in any case this is not a user action that can happen when importing data when the user leaves.
Is it possible that a Java application that should never emit any sound to configure it, say by setting a property for the entire application that says: โdont" never emit a sound "?
I was Google for this problem, and I found a message from people having the same problem, but did not answer: all I found was a hack saying that there was a known problem with JEditorPane, and that using putProperty("IgnoreCharsetDirective", Boolean.TRUE) was useful for making unwanted audio signals happen less frequently. However, there is very little information on this issue.
This is a real problem because the application is used in an environment where sound is needed on the computer, but this noise application of a Java application is unacceptable.
source share