Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

beep sound by java

 
wip siva
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
thanx a lot .i got it.
bye
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic