/******************************************************************************* * Copyright (c) 2003-2005, 2013 Till Zoppke. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/gpl.html * * Contributors: * Till Zoppke - initial API and implementation ******************************************************************************/ /* * Created on 02.05.2004 */ package eniac.menu.action; import java.awt.event.ActionEvent; import eniac.Manager; import eniac.lang.Dictionary; import eniac.menu.action.gui.TextPanel; import eniac.util.EProperties; import eniac.util.StringConverter; /** * @author zoppke */ public class Faq extends EAction { /** * @param e * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) */ public void actionPerformed(ActionEvent e) { // create dialog that displays information TextPanel panel = new TextPanel(Dictionary.FAQ_TEXT.getText()); panel.init(); panel.setPreferredSize(StringConverter.toDimension(EProperties.getInstance().getProperty("FAQ_SIZE"))); Manager.getInstance().makeDialog(panel, Dictionary.FAQ_NAME.getText()); // dialog closed. Nothing to do any more } }