Programming - AWT - Discussion

You Are Here :: Home > JAVA > AWT - Discussion

 



Q.

How to Create a TextField?                         


A. TextField txt = new TextField ("Initial text.", 20); B. TextField= new TextField ("Initial text.", 20);
C. TextField txt =TextField ("Initial text.", 20); D. TextField txt = new("Initial text.", 20);

Answer: Option A
Explaination:

 


TextField txt = new TextField ("Initial text.", 20);




Discussion

Your Comments Goes here...
NameDiscussion