try { fs.setNumerator( Double.valueOf( txtNumerator.getText( ) ) .doubleValue( ) ); } catch ( NumberFormatException e ) { handleFormatError( txtNumerator.getText( ) ); }
fs.setNumerator( spnNumerator.getSelection( ) );
		public FormatSpecifier buildFormatSpecifier( )		{			FractionNumberFormatSpecifier fs = FractionNumberFormatSpecifierImpl.create( );			fs.setPrecise( !btnApproximate.getSelection( ) );			fs.setDelimiter( txtDelimiter.getText( ) );			fs.setPrefix( txtPrefix.getText( ) );			fs.setSuffix( txtSuffix.getText( ) );			fs.setFractionDigits( iscFractionDigits.getValue( ) );			if ( btnUseNumerator.getSelection( )					&& txtNumerator.getText( ).length( ) > 0 )			{				try				{					fs.setNumerator( Double.valueOf( txtNumerator.getText( ) )							.doubleValue( ) );				}				catch ( NumberFormatException e )				{					handleFormatError( txtNumerator.getText( ) );				}			}			else			{				fs.setNumerator( 0 );			}			return fs;		}