Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
3.6k views
in Computer by (75.0k points)

Differentiate between : 

(i) TextField and TextArea

(ii) ComboBox and ListBox

(iii) getText() and setText()

1 Answer

+1 vote
by (68.8k points)
selected by
 
Best 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.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...