diff options
author | Damian Minkov <damencho@jitsi.org> | 2007-12-18 14:20:18 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2007-12-18 14:20:18 +0000 |
commit | bb0cfe42f84942bc23e1ff779b3893f0c492937b (patch) | |
tree | d4d159eb5cc9802c4f2ff04b6f099ac3dc63688b | |
parent | fe71e94dadbb9ebb12fa8a28cfced4613fbee94a (diff) | |
download | jitsi-bb0cfe42f84942bc23e1ff779b3893f0c492937b.zip jitsi-bb0cfe42f84942bc23e1ff779b3893f0c492937b.tar.gz jitsi-bb0cfe42f84942bc23e1ff779b3893f0c492937b.tar.bz2 |
Fix obtaining background image for about window.
-rw-r--r-- | src/net/java/sip/communicator/plugin/branding/AboutWindow.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/plugin/branding/AboutWindow.java b/src/net/java/sip/communicator/plugin/branding/AboutWindow.java index 2cec538..7a9018f 100644 --- a/src/net/java/sip/communicator/plugin/branding/AboutWindow.java +++ b/src/net/java/sip/communicator/plugin/branding/AboutWindow.java @@ -8,7 +8,8 @@ import javax.imageio.ImageIO; 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 @@ import org.osgi.framework.ServiceReference; 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 @@ public class AboutWindow extends JDialog implements HyperlinkListener, {
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),
|