1 package SnowMailClient.view.actions; 2 3 import SnowMailClient.model.accounts.*; 4 import snow.utils.storage.*; 5 import SnowMailClient.view.accounts.*; 6 import SnowMailClient.SnowMailClientApp; 7 import SnowMailClient.Language.Language; 8 9 import java.awt.*; 10 import java.awt.event.*; 11 import javax.swing.*; 12 import javax.swing.event.*; 13 import javax.swing.tree.*; 14 15 public class EditAccountsAction extends AbstractAction 16 { 17 JFrame parent; 18 MailAccounts accounts; 19 AppProperties properties; 20 21 public EditAccountsAction(JFrame parent, MailAccounts accounts, AppProperties properties) 22 { 23 super(Language.translate("Mail Accounts")); 24 this.parent = parent; 25 this.accounts = accounts; 26 this.properties = properties; 27 28 putValue(AbstractAction.SMALL_ICON, 29 SnowMailClientApp.loadImageIcon("pics/mailAccounts.PNG") ); 30 31 32 } 34 public void actionPerformed(ActionEvent e) 35 { 36 new AccountsEditor(parent, accounts, properties); 37 } 38 39 40 } | Popular Tags |