edit: one error you are doing is to compare Strings with the == operator:

Code:

if (AdminNa.getText()=="rrr"

The == operator checks to see if Object A is the same object as Object B and that is not what you want to know here. You don't care if the two Strings are the same object, but rather you want to check to see if both Strings contain the same characters. To do this, use the equals or equalsIgnoreCase method: