int min = 0; int max = bindingTable.getTable( ).getItemCount( ) - 2;  if ( ( min <= selectIndex ) && ( selectIndex <= max ) ) { btnDel.setEnabled( true ); if ( btnEdit != null ) btnEdit.setEnabled( true ); } else { btnDel.setEnabled( false ); if ( btnEdit != null ) btnEdit.setEnabled( false ); } bindingTable.getTable( ).select( selectIndex );
	private void updateButtons( )	{		boolean okEnable = false;		if ( !canSelect || selectedColumnName != null )		{			okEnable = true;		}		getOkButton( ).setEnabled( okEnable );	}