lattice test in swing