1.

Differentiate between : (i) TextField and TextArea(ii) ComboBox and ListBox(iii) getText() and setText()

Answer»

(i) The TextField allows the user to enter a single line of text only. But TextArea component allows to accept multiline input from the user or display multiple lines of information. 

(ii) The ListBox is used to display a list of items but does not have a text field where as a Combo Box is used to display a drop down list of items. It is a combination of a text box in which a user enters an items and a drop downlist from which the user selects an item. 

(iii) getText() - gets the value entered in a TextField. setText() is used to print a value in the TextField.



Discussion

No Comment Found