thanks for the suggestions. Yes, I added the TextField to the screen.
I did as pa4o85 recommended which could solve the problem. But still a little strange that Eclipse could not handle the TextField though it is a base class of the other ones.
Anyway thanks for the answers!