assuming you are referring to a JTextField called choice
use the method setText - inherited from JTextComponent
if my assumption is wrong, apologies...
not sure what sort of testing you are after, but for unit testing - check out:
http://www.junit.org/
also (to help with using above) :
http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-junit.html
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.