View Javadoc
1   /**
2    *
3    */
4   package net.sf.jtreemap.swing.provider;
5   
6   import java.awt.event.ActionEvent;
7   
8   import javax.swing.AbstractAction;
9   import javax.swing.JOptionPane;
10  
11  class AboutAction extends AbstractAction {
12      private static final long serialVersionUID = -8559400862920393294L;
13  
14      /**
15       * Constructor
16       *
17       * @param node
18       *            where you want to zoom/unzoom
19       * @param icon
20       *            icon corresponding to the operation (zoom or unzoom)
21       */
22      public AboutAction() {
23          super("About");
24      }
25  
26      /*
27       * (non-Javadoc)
28       *
29       * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
30       */
31      @Override
32      public void actionPerformed(final ActionEvent e) {
33          JOptionPane.showMessageDialog(null, "<html>JTreeMap powered by <a href=\"http://www.ObjectLab.co.uk\">ObjectLab.co.uk</a></html>");
34      }
35  
36      /*
37       * (non-Javadoc)
38       *
39       * @see javax.swing.Action#isEnabled()
40       */
41      @Override
42      public boolean isEnabled() {
43          return true;
44      }
45  }