[Schmitzm-commits] r1500 - trunk/schmitzm-core/src/main/java/de/schmitzm/swing

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Feb 12 20:39:05 CET 2011


Author: alfonx
Date: 2011-02-12 20:39:04 +0100 (Sat, 12 Feb 2011)
New Revision: 1500

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/TranslationAskJDialog.java
Log:
edit atlas settings dialog title changed

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/TranslationAskJDialog.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/TranslationAskJDialog.java	2011-02-10 01:21:11 UTC (rev 1499)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/TranslationAskJDialog.java	2011-02-12 19:39:04 UTC (rev 1500)
@@ -115,7 +115,7 @@
 	 * Using this constructor, you have to call setComponents afterwards.
 	 */
 	public TranslationAskJDialog(Component owner) {
-		super(owner);
+		super(owner, SwingUtil.R("TranslationAskJDialog.Title"));
 	}
 
 	/**
@@ -123,6 +123,21 @@
 	 * arbitrary number of components. If these {@link Component}s are
 	 * {@link TranslationEditJPanel}s, the {@link JDialog} manages to backup the
 	 * values and restore them if the dialog is canceled. Other
+	 * {@link JComponent}s are just displayed.<br/>
+	 * This class handles the cancel button itself. You may still want to listen
+	 * to PROPERTY_APPLY_AND_CLOSE events. This dialog is modal. The dialog has
+	 * to be set visible afterwards.<br/>
+	 * Using this constructor, you have to call setComponents afterwards.
+	 */
+	public TranslationAskJDialog(Component owner, String title) {
+		super(owner, title);
+	}
+
+	/**
+	 * The {@link TranslationAskJDialog} fills its content pane with an
+	 * arbitrary number of components. If these {@link Component}s are
+	 * {@link TranslationEditJPanel}s, the {@link JDialog} manages to backup the
+	 * values and restore them if the dialog is canceled. Other
 	 * {@link JComponent}s are just displayed.
 	 * 
 	 * @param translationEditJPanels
@@ -157,7 +172,6 @@
 		// cp.add(getButtons(), BorderLayout.SOUTH);
 		setContentPane(cp);
 
-		setTitle(SwingUtil.R("TranslationAskJDialog.Title"));
 		setModal(true);
 		pack();
 		SwingUtil.setRelativeFramePosition(this, getParent(), .5, .5);



More information about the Schmitzm-commits mailing list