This custom component is a subclass of java.awt.TextField. It accepts a String array as a parameter for its constructor.
This String array is stored in the ChoiceTextField, and whenever a text is entered, that text is compared to
the String array, and a suggestion is made.
It is possible to enable/disable this functionality with the setEnabled(boolean) method.
Try it out - you might like it.