The idea is to replace the standard "aboutAction
" — see DesktopApp.xxe_gui
) by an action of our own. Our custom action will display our custom dialog box.
Excerpts from AboutAction.java
:
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.getFrameHost(), "A Customized XMLmind XML Editor.", getLabel(), JOptionPane.PLAIN_MESSAGE, icon); } public void updateEnabled() { // Always enabled. } }
All | |
All dialog boxes opened by actions must use | |
This implementation of public void updateEnabled() { setEnabled(app.getActiveXMLEditor() != null); } |