Home » Tip Bank » Java
  • Email Article
  • Comment on this Article
  • Share Article
    • Digg
    • del.icio.us
    • Newvine
    • furl
    • StumbleUpon
    • BlinkList
    • Newsvine
    • Magnolia
    • Facebook
    • Tailrank
    • Slashdot
    • Technorati
    • Google Bookmarks
    • Yahoo Favorites
    • Windows Live
    • Ask
Language: Java
Expertise: Intermediate
Feb 13, 2018

WEBINAR:

On-Demand

Full Text Search: The Key to Better Natural Language Queries for NoSQL in Node.js


Watch

Get the Attention of a User with a Beep

Getting the attention of a user is easily achieved in Java with the following code.

Listing 1.

public class Beep
{
   public static void main(String args[])
   {
      Beep beep = new Beep();
      beep.proceed();
   }
   
   private void proceed()
   {
      java.awt.Toolkit.getDefaultToolkit().beep();
   }

}
M S Sridhar
 
Submit a Tip
Browse "Java" Tips
Browse All Tips
w3.org
htmlgoodies.com