### Play a Beep or Sound

To play a beep or sound use JavaObject and run a method.
This example shows how to use a method from the Java AWT Toolkit.
The Abstract Window Toolkit contains all classes to write the program that interface between
the user and different windowing toolkits.
You can use the AWT package to develop user interface objects like buttons, checkboxes,
radio buttons and menus etc.
`Sub Beep
Dim jo As JavaObject
jo.InitializeStatic("java.awt.Toolkit")
Dim toolkit As JavaObject = jo.RunMethod("getDefaultToolkit", Null)
toolkit.RunMethod("beep", Null)
End Sub`

Changed: , Category: Application, File: T6C159M1178.htm, ID: 1178