View Javadoc

1   /*
2    * @(#)$Id: AboutAction.java 689 2009-07-22 00:10:27Z bsigner $
3    *
4    * Author       :   Michele Croci, mcroci@gmail.com
5    *
6    * Purpose      :   About dialog.
7    *
8    * -----------------------------------------------------------------------
9    *
10   * Revision Information:
11   *
12   * Date             Who         Reason
13   *
14   * Dec 18, 2007     crocimi     Initial Release
15   * Jan 20, 2008     bsigner     Redesign with externalisation of data
16   *
17   * -----------------------------------------------------------------------
18   *
19   * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
20   *
21   * This software is the proprietary information of ETH Zurich.
22   * Use is subject to license terms.
23   * 
24   */
25  
26  
27  package org.ximtec.igesture.geco.gui.action;
28  
29  import java.awt.event.ActionEvent;
30  
31  import org.sigtec.graphix.widget.BasicAction;
32  import org.ximtec.igesture.geco.dialog.AboutDialog;
33  import org.ximtec.igesture.geco.util.GuiBundleTool;
34  
35  
36  /**
37   * About dialog.
38   * 
39   * @version 0.9, Nov 2007
40   * @author Michele Croci, mcroci@gmail.com
41   * @author Beat Signer, signer@inf.ethz.ch
42   */
43  public class AboutAction extends BasicAction {
44  
45     /**
46      * The key used to retrieve action details from the resource bundle.
47      */
48     public static final String KEY = "AboutAction";
49  
50     AboutDialog dialog;
51  
52  
53     public AboutAction() {
54        super(KEY, GuiBundleTool.getBundle());
55        dialog = new AboutDialog(AboutDialog.KEY, GuiBundleTool.getBundle());
56     }
57  
58  
59     /**
60      * Makes the dialogue visible.
61      * @param event the action event.
62      */
63     public void actionPerformed(ActionEvent event) {
64        dialog.setLocation(200, 200);
65        dialog.setVisible(true);
66     } // actionPerformed
67  
68  }