KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SnowMailClient > view > actions > EditAddressBookAction


1 package SnowMailClient.view.actions;
2
3 import SnowMailClient.model.AddressBook;
4 import snow.utils.storage.*;
5 import SnowMailClient.view.addresses.AddressBookView;
6 import SnowMailClient.SnowMailClientApp;
7 import SnowMailClient.Language.Language;
8
9
10 import java.awt.*;
11 import java.awt.event.*;
12 import javax.swing.*;
13 import javax.swing.event.*;
14 import javax.swing.tree.*;
15
16 public class EditAddressBookAction extends AbstractAction
17 {
18   JFrame parent;
19   AddressBook addressBook;
20   AppProperties properties;
21
22   public EditAddressBookAction(JFrame parent, AddressBook addressBook, AppProperties properties)
23   {
24     super(Language.translate("Address Book"));
25
26     putValue(AbstractAction.SMALL_ICON,
27               SnowMailClientApp.loadImageIcon("pics/addressbook.PNG") );
28
29     this.parent = parent;
30     this.addressBook = addressBook;
31     this.properties = properties;
32
33   } // Constructor
34

35   public void actionPerformed(ActionEvent e)
36   {
37      new AddressBookView(SnowMailClientApp.getInstance());
38   }
39
40
41 } // EditAddressBookAction
Popular Tags