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

yanas at dev.java.net yanas at dev.java.net
Tue Feb 21 18:41:27 CET 2006


User: yanas   
Date: 2006/02/21 09:41:27

Log:
 

File Changes:

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

File [changed]: StatusSelectorBox.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/StatusSelectorBox.java?r1=1.2&r2=1.3
Delta lines:  +6 -15
--------------------
--- StatusSelectorBox.java	21 Feb 2006 17:19:23 -0000	1.2
+++ StatusSelectorBox.java	21 Feb 2006 17:41:24 -0000	1.3
@@ -28,7 +28,7 @@
 import net.java.sip.communicator.service.protocol.PresenceStatus;
 import net.java.sip.communicator.service.protocol.icqconstants.IcqStatusEnum;
 
-public class StatusSelectorBox extends JLabel
+public class StatusSelectorBox extends SIPCommButton
     implements ActionListener{
 
     private AntialiasedPopupMenu popup;
@@ -38,12 +38,10 @@
     private OperationSetPresence presence;
     
     public StatusSelectorBox() {
-        /*
+        
         super(  ImageLoader.getImage(ImageLoader.STATUS_SELECTOR_BOX),
                 ImageLoader.getImage(ImageLoader.STATUS_SELECTOR_BOX),
                 null);
-        */
-        super(new ImageIcon(ImageLoader.getImage(ImageLoader.STATUS_SELECTOR_BOX)));
         
         this.popup = new AntialiasedPopupMenu();
         
@@ -53,13 +51,10 @@
     }
     
     public StatusSelectorBox(Map itemsMap, Image selectedItem) {
-        /*
+       
         super(  ImageLoader.getImage(ImageLoader.STATUS_SELECTOR_BOX),
                 ImageLoader.getImage(ImageLoader.STATUS_SELECTOR_BOX),
                 selectedItem);
-        */
-        super(new ImageIcon(ImageLoader.getImage(
-                    ImageLoader.STATUS_SELECTOR_BOX)));
         
         this.itemsMap = itemsMap;
         
@@ -67,7 +62,7 @@
         
         this.popup.setInvoker(this);
         
-        //this.addActionListener(this);
+        this.addActionListener(this);
         
         this.init();
     }
@@ -148,10 +143,6 @@
         }
     }
     
-    public void setIconImage(Image image){
-        
-        this.setIcon(new ImageIcon (image));
-    }
     
     public Point calculatePopupLocation(){
         




---------------------------------------------------------------------
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