OK, for our next trick, we are going to create a place where you can make words appear in your program,other than in the system console. That place is called a TextField. Here is how you add one to your program:
A) add this line of code just above your constructor -- you know, that thing that's named the same as your file, but has the ( ) after it
TextField typeText;
B) go just above "f1.show( )" and add these two lines of code to place the TextField into your program:
typeText = new TextField("hello there");
f1.add(typeText);
Run your program,and make sure that you can get a TextField to show up in your program
Cheers,
Uncle Paulie
Wednesday, February 4, 2009
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment