KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Authors:
3  * Stefanovic Nenad chupo@iis.ns.ac.yu
4  * Bojanic Sasa sasaboy@neobee.net
5  * Puskas Vladimir vpuskas@eunet.yu
6  * Pilipovic Goran zboniek@uns.ac.yu
7  *
8  */

9
10 package org.enhydra.jawe.actions;
11
12 import org.enhydra.jawe.*;
13
14 import java.util.*;
15 import javax.swing.*;
16 import java.awt.event.ActionEvent JavaDoc;
17
18 /**
19  * Class that realizes <B>show about</B> action.
20  */

21 public class HelpAbout extends ActionBase {
22
23    private JDialog aboutDlg;
24
25    public HelpAbout (PackageEditor editor) {
26       super(editor);
27    }
28
29    public void actionPerformed(ActionEvent JavaDoc e) {
30       if(aboutDlg == null) {
31          try {
32             String JavaDoc title = ResourceManager.getLanguageDependentString("AboutFrameTitle");
33             JaWEAboutDialog.showAbout((JFrame)editor.getWindow(), title, JaWE.getLogoIcon());
34          } catch (MissingResourceException mre) {
35             JaWEAboutDialog.showAbout((JFrame)editor.getWindow(),
36                "About Process Editor", JaWE.getLogoIcon());
37          }
38       }
39    }
40 }
41
Popular Tags