/* * Copyright (c) 2005-2007 Pixware. * * Author: Hussein Shafie * * This file is part of the XMLmind XML Editor project. * For conditions of distribution and use, see the accompanying legal.txt file. */ import javax.swing.ImageIcon; import javax.swing.JOptionPane; import com.xmlmind.xmleditapp.kit.AppAction; public class AboutAction extends AppAction { private ImageIcon icon; public void doIt() { if (icon == null) { icon = new ImageIcon(AboutAction.class.getResource( "icons/aboutAction.png")); } JOptionPane.showMessageDialog(app.getDialogParent(), "A Customized XMLmind XML Editor.", getLabel(), JOptionPane.PLAIN_MESSAGE, icon); } public void updateEnabled() { // Always enabled. } }