dblCurrent = Double.parseDouble( txtRight.getText( ) );
try { dblCurrent = NumberFormat.getInstance( ) .parse( txtRight.getText( ) ) .doubleValue( ); } catch ( ParseException e ) { e.printStackTrace( ); }
	public void handleEvent( Event event )	{		double dblCurrent = -1;		double dblPoints = -1;		if ( event.widget.equals( txtTop ) )		{			try			{				dblCurrent = Double.parseDouble( txtTop.getText( ) );				dblPoints = serviceprovider.getConvertedValue( dblCurrent,						sUnits,						"Points" ); //$NON-NLS-1$				insets.setTop( dblPoints );			}			catch ( NumberFormatException e1 )			{				dblPoints = insets.getTop( );				dblCurrent = serviceprovider.getConvertedValue( dblPoints,						"Points", sUnits ); //$NON-NLS-1$				txtTop.setText( new Double( dblCurrent ).toString( ) );			}		}		else if ( event.widget.equals( txtLeft ) )		{			try			{				dblCurrent = Double.parseDouble( txtLeft.getText( ) );				dblPoints = serviceprovider.getConvertedValue( dblCurrent,						sUnits,						"Points" ); //$NON-NLS-1$				insets.setLeft( dblPoints );			}			catch ( NumberFormatException e1 )			{				dblPoints = insets.getLeft( );				dblCurrent = serviceprovider.getConvertedValue( dblPoints,						"Points", sUnits ); //$NON-NLS-1$				txtLeft.setText( new Double( dblCurrent ).toString( ) );			}		}		else if ( event.widget.equals( txtBottom ) )		{			try			{				dblCurrent = Double.parseDouble( txtBottom.getText( ) );				dblPoints = serviceprovider.getConvertedValue( dblCurrent,						sUnits,						"Points" ); //$NON-NLS-1$				insets.setBottom( dblPoints );			}			catch ( NumberFormatException e1 )			{				dblPoints = insets.getBottom( );				dblCurrent = serviceprovider.getConvertedValue( dblPoints,						"Points", sUnits ); //$NON-NLS-1$				txtBottom.setText( new Double( dblCurrent ).toString( ) );			}		}		else if ( event.widget.equals( txtRight ) )		{			try			{				dblCurrent = Double.parseDouble( txtRight.getText( ) );				dblPoints = serviceprovider.getConvertedValue( dblCurrent,						sUnits,						"Points" ); //$NON-NLS-1$				insets.setRight( dblPoints );			}			catch ( NumberFormatException e1 )			{				dblPoints = insets.getRight( );				dblCurrent = serviceprovider.getConvertedValue( dblPoints,						"Points", sUnits ); //$NON-NLS-1$				txtRight.setText( new Double( dblCurrent ).toString( ) );			}		}	}