01: package org.netbeans.examples.modules.action;
02:
03: import java.awt.event.ActionEvent;
04: import javax.swing.AbstractAction;
05: import org.netbeans.examples.modules.lib.LibClass;
06: import org.openide.DialogDisplayer;
07: import org.openide.NotifyDescriptor;
08:
09: public class MagicAction extends AbstractAction {
10: public MagicAction() {
11: super ("Magic!");
12: }
13:
14: public void actionPerformed(ActionEvent e) {
15: DialogDisplayer.getDefault().notify(
16: new NotifyDescriptor.Message(LibClass.getMagicToken()));
17: }
18: }
|