/hg/icedtea-web: BasicExceptionDialog centers on-screen before a...

aazores at icedtea.classpath.org aazores at icedtea.classpath.org
Wed Nov 13 06:56:00 PST 2013


changeset c5e882e0b7f6 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=c5e882e0b7f6
author: Andrew Azores <aazores at redhat.com>
date: Wed Nov 13 09:55:45 2013 -0500

	BasicExceptionDialog centers on-screen before appearing


diffstat:

 ChangeLog                                                |  5 +++++
 netx/net/sourceforge/jnlp/util/BasicExceptionDialog.java |  2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 9ed10fe70cb7 -r c5e882e0b7f6 ChangeLog
--- a/ChangeLog	Wed Nov 13 10:05:32 2013 +0100
+++ b/ChangeLog	Wed Nov 13 09:55:45 2013 -0500
@@ -1,3 +1,8 @@
+2013-11-13  Andrew Azores  <aazores at redhat.com>
+
+	* netx/net/sourceforge/jnlp/util/BasicExceptionDialog.java: centers
+	on-screen before appearing
+
 2013-11-13  Jiri Vanek  <jvanek at redhat.com>
 
 	Added test-extension to silence stdout/err of itw when run from junit
diff -r 9ed10fe70cb7 -r c5e882e0b7f6 netx/net/sourceforge/jnlp/util/BasicExceptionDialog.java
--- a/netx/net/sourceforge/jnlp/util/BasicExceptionDialog.java	Wed Nov 13 10:05:32 2013 +0100
+++ b/netx/net/sourceforge/jnlp/util/BasicExceptionDialog.java	Wed Nov 13 09:55:45 2013 -0500
@@ -56,7 +56,6 @@
 import javax.swing.JPanel;
 import javax.swing.JScrollPane;
 import javax.swing.JTextArea;
-import net.sourceforge.jnlp.runtime.Translator;
 import net.sourceforge.jnlp.util.logging.JavaConsole;
 
 /**
@@ -124,6 +123,7 @@
 
         errorDialog.pack();
         errorDialog.setResizable(true);
+        ScreenFinder.centerWindowsToCurrentScreen(errorDialog);
         errorDialog.setVisible(true);
         errorDialog.dispose();
     }


More information about the distro-pkg-dev mailing list