[sc1.0-cvs] CVS update: /sip-communicator-1-0-draft/src/net/java/sip/communicator/impl/gui/main/message/menu/

yanas at dev.java.net yanas at dev.java.net
Sun Feb 5 20:34:44 CET 2006


User: yanas   
Date: 2006/02/05 11:34:44

Log:
 message window menus

File Changes:

Directory: /sip-communicator-1-0-draft/src/net/java/sip/communicator/impl/gui/main/message/menu/
================================================================================================

File [changed]: FileMenu.java
Url: https://sip-communicator-1-0-draft.dev.java.net/source/browse/sip-communicator-1-0-draft/src/net/java/sip/communicator/impl/gui/main/message/menu/FileMenu.java?r1=1.1&r2=1.2
Delta lines:  +12 -4
--------------------
--- FileMenu.java	12 Jan 2006 16:22:50 -0000	1.1
+++ FileMenu.java	5 Feb 2006 19:34:40 -0000	1.2
@@ -1,3 +1,10 @@
+/*
+ * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+
 package net.java.sip.communicator.impl.gui.main.message.menu;
 
 import java.awt.Graphics;
@@ -10,6 +17,7 @@
 import javax.swing.JMenuItem;
 
 import net.java.sip.communicator.impl.gui.main.utils.Constants;
+import net.java.sip.communicator.impl.gui.main.utils.ImageLoader;
 import net.java.sip.communicator.impl.gui.main.customcontrols.AntialiasedMenuItem;
 import net.java.sip.communicator.impl.gui.main.i18n.Messages;
 import net.java.sip.communicator.impl.gui.main.message.MessageWindow;
@@ -20,19 +28,19 @@
 
 	private AntialiasedMenuItem saveMenuItem 
 						= new AntialiasedMenuItem(Messages.getString("save")
-									, new ImageIcon(Constants.SAVE_ICON));
+									, new ImageIcon(ImageLoader.getImage(ImageLoader.SAVE_ICON)));
 
 	private AntialiasedMenuItem printMenuItem 
 						= new AntialiasedMenuItem(Messages.getString("print")
-									, new ImageIcon(Constants.PRINT_ICON));
+									, new ImageIcon(ImageLoader.getImage(ImageLoader.PRINT_ICON)));
 	
 	private AntialiasedMenuItem closeMenuItem 
 						= new AntialiasedMenuItem(Messages.getString("close")
-									, new ImageIcon(Constants.CLOSE_ICON));
+									, new ImageIcon(ImageLoader.getImage(ImageLoader.CLOSE_ICON)));
 	
 	private AntialiasedMenuItem quitMenuItem 
 						= new AntialiasedMenuItem(Messages.getString("quit")
-									, new ImageIcon(Constants.QUIT_ICON));
+									, new ImageIcon(ImageLoader.getImage(ImageLoader.QUIT_ICON)));
 	
 	private MessageWindow parentWindow;
 	

File [changed]: MessageWindowMenuBar.java
Url: https://sip-communicator-1-0-draft.dev.java.net/source/browse/sip-communicator-1-0-draft/src/net/java/sip/communicator/impl/gui/main/message/menu/MessageWindowMenuBar.java?r1=1.1&r2=1.2
Delta lines:  +7 -0
-------------------
--- MessageWindowMenuBar.java	12 Jan 2006 16:22:49 -0000	1.1
+++ MessageWindowMenuBar.java	5 Feb 2006 19:34:41 -0000	1.2
@@ -1,3 +1,10 @@
+/*
+ * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+
 package net.java.sip.communicator.impl.gui.main.message.menu;
 
 import java.awt.Graphics;

File [changed]: EditMenu.java
Url: https://sip-communicator-1-0-draft.dev.java.net/source/browse/sip-communicator-1-0-draft/src/net/java/sip/communicator/impl/gui/main/message/menu/EditMenu.java?r1=1.1&r2=1.2
Delta lines:  +11 -3
--------------------
--- EditMenu.java	12 Jan 2006 16:22:50 -0000	1.1
+++ EditMenu.java	5 Feb 2006 19:34:41 -0000	1.2
@@ -1,3 +1,10 @@
+/*
+ * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+
 package net.java.sip.communicator.impl.gui.main.message.menu;
 
 import java.awt.Graphics;
@@ -7,6 +14,7 @@
 import javax.swing.JMenuItem;
 
 import net.java.sip.communicator.impl.gui.main.utils.Constants;
+import net.java.sip.communicator.impl.gui.main.utils.ImageLoader;
 import net.java.sip.communicator.impl.gui.main.customcontrols.AntialiasedMenuItem;
 import net.java.sip.communicator.impl.gui.main.i18n.Messages;
 import net.java.sip.communicator.impl.gui.main.utils.AntialiasingManager;
@@ -15,15 +23,15 @@
 	
 	private AntialiasedMenuItem cutMenuItem 
 							= new AntialiasedMenuItem(Messages.getString("cut")
-									, new ImageIcon(Constants.CUT_ICON));
+									, new ImageIcon(ImageLoader.getImage(ImageLoader.CUT_ICON)));
 
 	private AntialiasedMenuItem copyMenuItem 
 							= new AntialiasedMenuItem(Messages.getString("copy")
-									, new ImageIcon(Constants.COPY_ICON));
+									, new ImageIcon(ImageLoader.getImage(ImageLoader.COPY_ICON)));
 	
 	private AntialiasedMenuItem pasteMenuItem 
 							= new AntialiasedMenuItem(Messages.getString("paste")
-									, new ImageIcon(Constants.PASTE_ICON));
+									, new ImageIcon(ImageLoader.getImage(ImageLoader.PASTE_ICON)));
 
 	public EditMenu(){
 		




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator-1-0-draft.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator-1-0-draft.dev.java.net





More information about the commits mailing list