From 06726d31ab5383c8b4585ae711b73fb68fc69c39 Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Thu, 19 Apr 2012 12:36:43 -0400 Subject: PR918: java applet windows uses a low resulution black/white icon 2012-04-19 Omair Majid * NEWS: Update with fix. * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: Remove windowIcon. (initialize): Do not call loadWindowIcon. (getWindowIcon): Remove. (setWindowIcon): Remove. (loadWindowIcon): Remove. * netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java (checkTopLevelWindow): Do not set the icon for all top level windows. Use the default java icon instead. * netx/net/sourceforge/jnlp/util/ImageResources.java: New file. Provides access to icons. * netx/net/sourceforge/jnlp/JNLPSplashScreen.java (JNLPSplashScreen), * netx/net/sourceforge/jnlp/cache/DefaultDownloadIndicator.java (getListener), * netx/net/sourceforge/jnlp/controlpanel/AdvancedProxySettingsDialog.java (AdvancedProxySettingsDialog), * netx/net/sourceforge/jnlp/controlpanel/CacheViewer.java (CacheViewer), * netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java (ControlPanel), * netx/net/sourceforge/jnlp/security/SecurityDialog.java (SecurityDialog), * netx/net/sourceforge/jnlp/security/viewer/CertificateViewer.java (CertificateViewer), * netx/net/sourceforge/jnlp/util/BasicExceptionDialog.java (show), * plugin/icedteanp/java/sun/applet/JavaConsole.java (initialize): Explicitly load icons. * tests/netx/unit/net/sourceforge/jnlp/util/ImageResourcesTest.java: Test for ImageResources class. --- netx/net/sourceforge/jnlp/cache/DefaultDownloadIndicator.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'netx/net/sourceforge/jnlp/cache/DefaultDownloadIndicator.java') diff --git a/netx/net/sourceforge/jnlp/cache/DefaultDownloadIndicator.java b/netx/net/sourceforge/jnlp/cache/DefaultDownloadIndicator.java index 5457306..8710a6a 100644 --- a/netx/net/sourceforge/jnlp/cache/DefaultDownloadIndicator.java +++ b/netx/net/sourceforge/jnlp/cache/DefaultDownloadIndicator.java @@ -28,6 +28,7 @@ import javax.swing.Timer; import javax.jnlp.*; import net.sourceforge.jnlp.runtime.*; +import net.sourceforge.jnlp.util.ImageResources; /** * Show the progress of downloads. @@ -101,6 +102,7 @@ public class DefaultDownloadIndicator implements DownloadIndicator { synchronized (frameMutex) { if (frame == null) { frame = new JFrame(downloading + "..."); + frame.setIconImages(ImageResources.INSTANCE.getApplicationImages()); frame.getContentPane().setLayout(new GridBagLayout()); } -- cgit v1.2.3