KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > jawe > actions > TextPrint


1 package org.enhydra.jawe.actions;
2
3 import javax.swing.*;
4 import org.enhydra.jawe.*;
5 import java.awt.event.*;
6
7 /**
8  * Class that implements Print action in TextView.
9  *
10  * @author Zoran Milakovic
11  * @version 1.0
12  */

13 public class TextPrint extends AbstractAction {
14
15    public TextPrint() {
16       putValue(Action.NAME,Utils.getUnqualifiedClassName(getClass()));
17    }
18
19    public void actionPerformed(ActionEvent e) {
20       javax.swing.JOptionPane.showConfirmDialog(null, "TextPrint");
21    }
22
23 }
24
Popular Tags