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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Mar 31 10:26:12 CEST 2011


Author: alfonx
Date: 2011-03-31 10:26:11 +0200 (Thu, 31 Mar 2011)
New Revision: 1544

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/TranslationAskJDialog.java
Log:


Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/TranslationAskJDialog.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/TranslationAskJDialog.java	2011-03-30 18:26:40 UTC (rev 1543)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/TranslationAskJDialog.java	2011-03-31 08:26:11 UTC (rev 1544)
@@ -112,6 +112,22 @@
 	 * 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/>
+	 */
+	public TranslationAskJDialog(Component owner, String title,
+			final JComponent... translationEditJPanels) {
+		this(owner, title);
+		setComponents(translationEditJPanels);
+	}
+
+	/**
+	 * 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.<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) {



More information about the Schmitzm-commits mailing list