aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes beep sound by java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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
 
Consider Paul's rocket mass heater.
 
subject: beep sound by java