1 19 package org.openharmonise.him.actions.help; 20 21 import java.awt.event.ActionEvent ; 22 23 import javax.swing.Icon ; 24 import javax.swing.ImageIcon ; 25 import javax.swing.JFrame ; 26 27 import org.openharmonise.him.actions.*; 28 import org.openharmonise.him.window.about.*; 29 import org.openharmonise.vfs.*; 30 import org.openharmonise.vfs.gui.*; 31 32 33 40 public class ActionAbout extends AbstractHIMAction implements HIMAction { 41 42 45 public ActionAbout() { 46 super(); 47 } 48 49 52 public ActionAbout(VirtualFile vfFile) { 53 super(vfFile); 54 } 55 56 59 public void actionPerformed(ActionEvent arg0) { 60 JFrame frame = new JFrame (); 61 frame.setIconImage( ((ImageIcon )IconManager.getInstance().getIcon("16-sim-logo.gif")).getImage() ); 62 63 64 AboutDialog dialog = new AboutDialog(frame); 65 dialog.show(); 66 } 67 68 71 public String getDescription() { 72 return "Displays information about Harmonise Information Manager"; 73 } 74 75 78 public String getText() { 79 return "About"; 80 } 81 82 85 public String getToolTip() { 86 return this.getDescription(); 87 } 88 89 92 public Icon getIcon() { 93 return IconManager.getInstance().getIcon("16-command-about.png"); 94 } 95 96 99 public int getAcceleratorKeycode() { 100 return 0; 101 } 102 103 106 public String getMnemonic() { 107 return "A"; 108 } 109 110 113 public int getAcceleratorMask() { 114 return 0; 115 } 116 117 } 118 | Popular Tags |