Don Mafred, you are right, what happens is that I copy bad code and copy with calls to "swing" but the idea is that i can use in B4A, the code works well on the console Eclipe , but this just use it to check the code..... by dispersing in how to use it in B4A , but my problem is not how to do it .... so I appeal to your kind work , tks