aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/controlpanel/CacheViewer.java
diff options
context:
space:
mode:
Diffstat (limited to 'netx/net/sourceforge/jnlp/controlpanel/CacheViewer.java')
-rw-r--r--netx/net/sourceforge/jnlp/controlpanel/CacheViewer.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/netx/net/sourceforge/jnlp/controlpanel/CacheViewer.java b/netx/net/sourceforge/jnlp/controlpanel/CacheViewer.java
index a06165a..fc63b60 100644
--- a/netx/net/sourceforge/jnlp/controlpanel/CacheViewer.java
+++ b/netx/net/sourceforge/jnlp/controlpanel/CacheViewer.java
@@ -31,6 +31,7 @@ import javax.swing.JDialog;
import net.sourceforge.jnlp.config.DeploymentConfiguration;
import net.sourceforge.jnlp.runtime.Translator;
import net.sourceforge.jnlp.util.ImageResources;
+import net.sourceforge.jnlp.util.ScreenFinder;
/**
* This class will provide a visual way of viewing cache.
@@ -113,9 +114,6 @@ public class CacheViewer extends JDialog {
* Center the dialog box.
*/
private void centerDialog() {
- Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
- Dimension dialogSize = getSize();
-
- setLocation((screen.width - dialogSize.width) / 2, (screen.height - dialogSize.height) / 2);
+ ScreenFinder.centerWindowsToCurrentScreen(this);
}
}