View Javadoc
1 package org.neuclear.commons.swing; 2 3 import org.neuclear.commons.crypto.passphraseagents.swing.actions.NeuClearAction; 4 5 import javax.swing.*; 6 import java.awt.event.ActionEvent; 7 8 /* 9 * The NeuClear Project and it's libraries are 10 * (c) 2002-2004 Antilles Software Ventures SA 11 * For more information see: http://neuclear.org 12 * 13 * This library is free software; you can redistribute it and/or 14 * modify it under the terms of the GNU Lesser General Public 15 * License as published by the Free Software Foundation; either 16 * version 2.1 of the License, or (at your option) any later version. 17 * 18 * This library is distributed in the hope that it will be useful, 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 * Lesser General Public License for more details. 22 * 23 * You should have received a copy of the GNU Lesser General Public 24 * License along with this library; if not, write to the Free Software 25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 */ 27 28 /*** 29 * User: pelleb 30 * Date: Jun 6, 2004 31 * Time: 12:06:15 PM 32 */ 33 public class SelectLanguageAction extends NeuClearAction { 34 public SelectLanguageAction(JFrame parent, String name) { 35 super(name, null); 36 language = name; 37 this.parent = parent; 38 } 39 40 public void actionPerformed(ActionEvent e) { 41 Messages.updateLocale(language); 42 JOptionPane.showMessageDialog(parent, Messages.getText("langrestart")); 43 } 44 45 final String language; 46 final JFrame parent; 47 }

This page was automatically generated by Maven