Why do I get an error when I give RequesFocus
to my text field?
public void Set_Conect(String Conect){
System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>rrrrrrrrrrrrrrrrrrrrr "+Frg_Logeo.get_usuario ());
Frg_Logeo.get_conect ().setText ( Conect );
Usuario.requestFocus ();
}
In my error it shows me:
Only the original thread that created a view of the hierarchy can touch its views.
That error comes to me through the focus? or is there something wrong that I'm doing?