[Schmitzm-commits] r124 - trunk/src/skrueger/i8n

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu May 21 23:01:59 CEST 2009


Author: alfonx
Date: 2009-05-21 23:01:59 +0200 (Thu, 21 May 2009)
New Revision: 124

Modified:
   trunk/src/skrueger/i8n/SwitchLanguageDialog.java
Log:
* Migrating parameters "Window owner" to "Component owner"

Modified: trunk/src/skrueger/i8n/SwitchLanguageDialog.java
===================================================================
--- trunk/src/skrueger/i8n/SwitchLanguageDialog.java	2009-05-20 15:54:51 UTC (rev 123)
+++ trunk/src/skrueger/i8n/SwitchLanguageDialog.java	2009-05-21 21:01:59 UTC (rev 124)
@@ -1,5 +1,6 @@
 package skrueger.i8n;
 
+import java.awt.Component;
 import java.awt.GridBagConstraints;
 import java.awt.GridBagLayout;
 import java.awt.Insets;
@@ -53,8 +54,8 @@
 	 * @param owner
 	 * @param atlasConfig
 	 */
-	public SwitchLanguageDialog(final Window owner, final List<String> languages) {
-		super(owner);
+	public SwitchLanguageDialog(final Component owner, final List<String> languages) {
+		super(owner instanceof Window ? (Window)owner : SwingUtil.getParentWindow(owner));
 		this.languages = languages;
 
 		Translation.setActiveLang(languages.get(0));



More information about the Schmitzm-commits mailing list