IntelliJ Java IDE
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes TextArea Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "TextArea" Watch "TextArea" New topic
Author

TextArea

josephine chen
Ranch Hand

Joined: Oct 29, 2002
Posts: 216
Given a TextArea using a proportional pitch font and constructed like this:

TextField t = new TextArea("12345", 5, 5);

Which statement is true?
A)- The displayed width shows exactly five characters on each line unless otherwise constrained ???
B)The displayed height is five lines unless otherwise constrained. ???
C) The maximum number of characters in a line will be five. //FALSE DEPENDS ON THE TYPE OF CHARACTER U KEY IN
IF U TYPE CHARACTERS LIKE " I " U CAN HAVE MORE THAN 5 DISPLAYED
D) The user will be able to edit the character string. //TRUE
E) The displayed string can use multiple fonts. //FALSE
Siddhu
Ranch Hand

Joined: Oct 02, 1999
Posts: 31
Given a TextArea using a proportional pitch font and constructed like this:
TextField t = new TextArea("12345", 5, 5);

Which statement is true?
A)- The displayed width shows exactly five characters on each line unless otherwise constrained ???
B)The displayed height is five lines unless otherwise constrained. ???
C) The maximum number of characters in a line will be five. //FALSE DEPENDS ON THE TYPE OF CHARACTER U KEY IN
IF U TYPE CHARACTERS LIKE " I " U CAN HAVE MORE THAN 5 DISPLAYED
D) The user will be able to edit the character string. //TRUE
E) The displayed string can use multiple fonts. //FALSE
The Question should be as:
TextField t = new TextField("12345", 5, 5);
The answers are B) and D).

Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3215
Please see
TextArea
and
TextField


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
IntelliJ Java IDE
 
subject: TextArea
 
Threads others viewed
Exam Question
TextArea
Strange show
AWT
///incompatible types///
IntelliJ Java IDE