That seems a very odd thing to want to do Steven. Do you mind if I ask why you want to do it as there may be a better way to achieve your goal. No offence but what you are doing really does sound like a hack.
Writing a prog where employee can log in or just scan their employee cards.
I've just started here and am working someone else's code, just needed somewhere to store the employeeID temporarily. If there is a better way it would be great.
The thing that I don't understand is why you want it to be able to receive focus and yet not be visible. Are you intending that the user input the value yet not be able to see what they are inputting? If that's the case then it is likely to be error-prone. If it's not the case, why do you need a control to store the value instead of just putting it in a String variable?
if it works, then it works, just let it go. If your goal is achieved then stop thinking more about that. Unless it causes some performance issues that is not case ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.