This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes beep sound by java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "beep sound by java" Watch "beep sound by java" New topic
Author

beep sound by java

wip siva
Ranch Hand

Joined: Nov 03, 2000
Posts: 36
hi friends

i am displaying live data on JTable.i have columns .in one column
if there is any String like " error " i should give the beep sound.
i have two threads one to read the broadcasted data and another
one is to display on the table.
plz help me with some sample code
thanx in advance
Kavitha Adimurthy
Greenhorn

Joined: Feb 19, 2001
Posts: 8
Hi,
i guess you can read in the string and whenever u encounter an "Error", you can make it beep by placing the following line in the code:
Toolkit.getDefaultToolkit().beep();
hope this helps.
~K
wip siva
Ranch Hand

Joined: Nov 03, 2000
Posts: 36
hi friends
thanx a lot .i got it.
bye
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: beep sound by java
 
Similar Threads
Beep sound - How to generate?
Beep Sound continuously for 1 min??
How to get Beep Sound during error??
Java Beeping
Applet in web application