[Schmitzm-commits] r1173 - trunk/src/schmitzm/swing
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Oct 26 12:00:10 CEST 2010
Author: mojays
Date: 2010-10-26 12:00:10 +0200 (Tue, 26 Oct 2010)
New Revision: 1173
Modified:
trunk/src/schmitzm/swing/InputOption.java
Log:
InputOption: little space between description and mandatory indicator
Modified: trunk/src/schmitzm/swing/InputOption.java
===================================================================
--- trunk/src/schmitzm/swing/InputOption.java 2010-10-26 09:55:37 UTC (rev 1172)
+++ trunk/src/schmitzm/swing/InputOption.java 2010-10-26 10:00:10 UTC (rev 1173)
@@ -161,10 +161,13 @@
// Elemente dem Container hinzufuegen
if ( label != null ) {
+ // put description and mandatory indicator in an
+ // container first
descLabelContainer = new Container();
descLabelContainer.setLayout( new FlowLayout(FlowLayout.LEFT,0,0) );
descLabelContainer.add( descLabel );
descLabelContainer.add( inputNeededLabel );
+ // add container to layout
add( descLabelContainer, BorderLayout.NORTH );
add( inpComp, centerInputComp ? BorderLayout.CENTER : BorderLayout.SOUTH );
} else {
@@ -260,7 +263,7 @@
// }
if ( inputNeededLabel != null ) {
if ( inpNeeded )
- inputNeededLabel.setText( defaultInputNeededSign );
+ inputNeededLabel.setText( " " + defaultInputNeededSign );
else
inputNeededLabel.setText( "" );
}
More information about the Schmitzm-commits
mailing list