FileDocCategorySizeDatePackage
BeepPlugin.javaAPI DocExample683Tue Dec 17 13:19:34 GMT 2002com.wiverson.macosbook.plugin

BeepPlugin.java

/*
 * BeepPlugin.java
 *
 * Created on June 5, 2002, 2:15 PM
 */

package com.wiverson.macosbook.plugin;

import com.wiverson.macosbook.SimpleEdit;

public class BeepPlugin implements com.wiverson.macosbook.SimpleEditPlugin
{
    
    public BeepPlugin()
    {
    }
    
    public void doAction(SimpleEdit frame, java.awt.event.ActionEvent evt)
    {
        java.awt.Toolkit.getDefaultToolkit().beep();
        frame.setStatusText("Beep!");
      
    }
    
    public String getAction()
    {
        return "Beep";
    }
    
    public void init(SimpleEdit frame)
    {
        frame.setStatusText("Loaded BeepPlugin");        
    }
    
}