/**
 * Pure Java Swing 1.0 applet.
 * This program demonstrates how to realize an Applet.
 *
 * This file was automatically generated by
 * Omnicore CodeGuide.
 */

import com.sun.java.swing.*;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;

/**
 * Applet class.
 */
public class #project_name# extends JApplet
{
	/**
	 * This method is called when the applet is created.
	 */
	public void init()
	{
		// Create button.
		JButton button = new JButton("Beep");
		button.setFont(new Font("SansSerif", Font.BOLD, 20));
		
		// Add button to applet.
		this.getContentPane().add(button);
		
		// Add button listener.
		button.addActionListener
		(
			new ActionListener()
			{
				/**
				 * Called when button was pressed.
				 */
				public void actionPerformed(ActionEvent e)
				{
					 #project_name#.this.buttonPressed();
				}
			}
		);
	}
	
	/**
	 * Called when the button was pressed.
	 */
	protected void buttonPressed()
	{
		// Beep.
		Toolkit.getDefaultToolkit().beep();
	}
}
