A beep sound can be use to indicate a warning or error.
Tutorial Details:
A beep sound can be use to indicate a warning or error. However, it is often better to give a warning dialog box with a description of the problem.
To Produce a Beep Sound
You need to import the Toolkit class:
import java.awt.Toolkit;
This is not always a sufficient way to alert the user as there may not be sound on the user's computer (as in many student labs) or the sound may be turned down, etc.
Rate Tutorial: http://www.roseindia.net/java/java-tips/other/40sound/10beep.shtml
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: Beep
View Tutorial: Beep
Related
Tutorials:
|