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

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Sat May 5 19:12:33 CEST 2012


Author: mojays
Date: 2012-05-05 19:12:33 +0200 (Sat, 05 May 2012)
New Revision: 1984

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/input/BooleanInputOption.java
Log:
BooleanInputOption: handle situation if description container is not present anymore


Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/input/BooleanInputOption.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/input/BooleanInputOption.java	2012-05-04 16:41:04 UTC (rev 1983)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/input/BooleanInputOption.java	2012-05-05 17:12:33 UTC (rev 1984)
@@ -57,7 +57,8 @@
 		// des Eingabefeldes zu stehen, sondern mit der Checkbox in
 		// einer Zeile
 		// -> JLabel entfernen und statt dessen den Text der Checkbox setzen
-		this.remove(this.descLabelContainer);
+		if ( descLabelContainer != null )
+		  this.remove(this.descLabelContainer);
 		((JCheckBox) inpComp).setText(label);
 		// Standardwert setzen
 		if (defValue != null)



More information about the Schmitzm-commits mailing list