Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Applet
« Previous
Next »
How to create TextArea with 80 character-width wide and 10 character-height tall?
Options
- new TextArea(80, 10)
- new TextArea(10, 80)
CORRECT ANSWER : new TextArea(10, 80)
Discussion Board
TextArea
Text field in applet is a white rectangle that can display one line of text. A text field is set up so that the program's user can click on the field and type information, and the applet can then read that information. Our applet has two text fields. Text area is like a text field having more than one line. Its constructor includes more than one argument exactly four arguments that are given as:
TextArea answers = new TextArea(
"I am ready for your first trip.", // Initial text
8, // Number of rows
60, // Number of columns
TextArea.SCROLLBARS_NONE // Do not include scroll bars
);
Text area is used to display the message to the customers and the above text area will be declared as:
new TextArea (10,80) where 80 is the width means rows and height is 10 or columns.
Rohit Sharma 09-30-2014 03:35 PM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲