[Schmitzm-commits] r617 - in branches/2.0-RC1: dist src/skrueger/swing

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Dec 14 20:53:21 CET 2009


Author: alfonx
Date: 2009-12-14 20:53:20 +0100 (Mon, 14 Dec 2009)
New Revision: 617

Modified:
   branches/2.0-RC1/dist/schmitzm-2.0-RC1.jar
   branches/2.0-RC1/src/skrueger/swing/AtlasDialog.java
   branches/2.0-RC1/src/skrueger/swing/TranslationAskJDialog.java
Log:


Modified: branches/2.0-RC1/dist/schmitzm-2.0-RC1.jar
===================================================================
(Binary files differ)

Modified: branches/2.0-RC1/src/skrueger/swing/AtlasDialog.java
===================================================================
--- branches/2.0-RC1/src/skrueger/swing/AtlasDialog.java	2009-12-14 19:53:08 UTC (rev 616)
+++ branches/2.0-RC1/src/skrueger/swing/AtlasDialog.java	2009-12-14 19:53:20 UTC (rev 617)
@@ -16,11 +16,8 @@
 
 public class AtlasDialog extends JDialog {
 
-	protected final Component parentWindow;
-
-	public AtlasDialog(final Component parentWindow, String title) {
-		super(SwingUtil.getParentWindow(parentWindow), title);
-		this.parentWindow = SwingUtil.getParentWindow(parentWindow);
+	public AtlasDialog(final Component owner, String title) {
+		super(SwingUtil.getParentWindow(owner), title);
 		initDialog();
 	}
 

Modified: branches/2.0-RC1/src/skrueger/swing/TranslationAskJDialog.java
===================================================================
--- branches/2.0-RC1/src/skrueger/swing/TranslationAskJDialog.java	2009-12-14 19:53:08 UTC (rev 616)
+++ branches/2.0-RC1/src/skrueger/swing/TranslationAskJDialog.java	2009-12-14 19:53:20 UTC (rev 617)
@@ -162,7 +162,7 @@
 		setTitle(SwingUtil.R("TranslationAskJDialog.Title"));
 		setModal(true);
 		pack();
-		SwingUtil.centerFrameOnScreen(this);
+		SwingUtil.setRelativeFramePosition(this, getParent(), .5, .5);
 	}
 
 	public void setOptionalButtons(JButton... optionalButtons) {



More information about the Schmitzm-commits mailing list