This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

beep sound by java  RSS feed

 
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!