@@ -0,0 +1,1096 @@
+package xal.tools.swing;%0A%0Aimport javax.swing.*;%0Aimport java.text.*;%0A%0A%0A/** Convenient preconfigured formatted text field for handling double values */%0Apublic class DecimalField extends JFormattedTextField %7B%0A    /** variable required for serializable objects */%0A    final private static long serialVersionUID = 1L;%0A    %0A    %0A    /** Empty constructor */%0A    public DecimalField() %7B%0A        this( 0.0, 17, NumberFormat.getNumberInstance() );%0A    %7D%0A    %0A    %0A    /** Primary Constructor with value, column width and format */%0A    public DecimalField( final double value, final int columns, final NumberFormat format ) %7B%0A        super( format );%0A        setColumns( columns );%0A        setValue( value );%0A        setHorizontalAlignment( JTextField.RIGHT );%0A    %7D%0A%0A    %0A    /** Constructor with value and column width */%0A    public DecimalField( final double value, final int columns ) %7B%0A        this( value, columns, NumberFormat.getNumberInstance() );%0A    %7D%0A%0A    %0A    /** Get the value as a double */%0A    public double getDoubleValue() %7B%0A        return ((Number)getValue()).doubleValue();%0A    %7D    %0A%7D%0A

Add DecimalField as a convenient preconfigured formatted text field for handling double values.