import java.awt.event.ActionEvent;
import javax.swing.*;

/**
  Creates a blank document for the user to edit.
  <br><a href="../source/FileNewAction.java">View Source File</a>
*/
public class FileNewAction extends AbstractAction {
  Mozart mozart;

  public FileNewAction(Mozart mz) {
    super("New", new ImageIcon("images/new.gif"));
    mozart = mz;
  }

  public void actionPerformed(ActionEvent event) {
    // Create a new document window and add
    // it to the desktop
    mozart.mainFrame.addToDesktop(new MozartInternalFrame(mozart));
  }
}
