We present the solution of the nonlinear Schrödinger equation using the lattice Boltzmann method. We show results for two dimensions using a d2q9 lattice velocity scheme. To implement the expansion B.G.K. (Bhatnagar-Gross-Krook), we assume the distribution function as a complex valued function, whose real and complex components satisfy the Boltzmann equation. The strategy followed to obtain the motion equation is to define adequately the second moment of the distribution as a symmetric tensor. We obtain stable structures for given values of the nonlinear coupling constant.