Java Toolkit.beep()

Syntax

Toolkit.beep() has the following syntax.

public abstract void beep()

Example

In the following code shows how to use Toolkit.beep() method.


/*from  w ww  .  j  ava2  s  . co  m*/
import java.awt.Toolkit;

public class Main {

  public static void main(String[] args) {
    Toolkit tk = Toolkit.getDefaultToolkit();
    tk.beep();
  }
}




















Home »
  Java Tutorial »
    java.awt »




BasicStroke
BorderLayout
CardLayout
Color
Cursor
Desktop
DesktopManager
DisplayMode
EventQueue
FlowLayout
FocusTraversalPolicy
Font
FontMetrics
GradientPaint
Graphics
Graphics2D
GraphicsConfiguration
GraphicsDevice
GraphicsEnvironment
GridBagConstraints
GridBagLayout
GridLayout
Image
ItemSelectable
KeyboardFocusManager
LayoutManager
LayoutManager2
Point
Rectangle
Robot
Shape
SplashScreen
SystemColor
SystemTray
TexturePaint
TrayIcon
Toolkit
Transparency