svn commit: r3320 - trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java

damencho at dev.java.net damencho at dev.java.net
Tue Dec 18 15:20:20 CET 2007


Author: damencho
Date: 2007-12-18 14:20:18+0000
New Revision: 3320

Modified:
   trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java

Log:
Fix obtaining background image for about window.

Modified: trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java?view=diff&rev=3320&p1=trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java&p2=trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java&r1=3319&r2=3320
==============================================================================
--- trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java	(original)
+++ trunk/src/net/java/sip/communicator/plugin/branding/AboutWindow.java	2007-12-18 14:20:18+0000
@@ -8,7 +8,8 @@
 import javax.swing.*;

 import javax.swing.event.*;

 

-import net.java.sip.communicator.service.browserlauncher.BrowserLauncherService;

+import net.java.sip.communicator.util.*;

+import net.java.sip.communicator.service.browserlauncher.*;

 import net.java.sip.communicator.service.gui.*;

 

 import org.osgi.framework.ServiceReference;

@@ -16,6 +17,8 @@
 public class AboutWindow extends JDialog implements HyperlinkListener,

         ActionListener, ExportedWindow

 {

+    private Logger logger = Logger.getLogger(AboutWindow.class.getName());

+    

     private WindowBackground mainPanel = new WindowBackground();

 

     private JLabel titleLabel = new JLabel(

@@ -141,12 +144,13 @@
         {

             try

             {

-                bgImage = ImageIO.read(WindowBackground.class

+                bgImage = ImageIO.read(WindowBackground.class.getClassLoader()

                         .getResource(

                             BrandingResources.getString("aboutWindowBg")));

             }

             catch (IOException e)

             {

+                logger.error("Error cannot obtain background image", e);

                 bgImage = null;

             }

             this.setPreferredSize(new Dimension(bgImage.getWidth(this),


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: commits-help at sip-communicator.dev.java.net





More information about the commits mailing list