• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

TextArea

 
Ranch Hand
Posts: 5398
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
again form maha's test
46. This piece of code:
TextArea ta = new TextArea( 10, 3 );
Produces (select all correct statements):
a) a TextArea with 10 rows and up to 3 columns
b) a TextArea with a variable number of columns not less than 10 and 3 rows
c) a TextArea that may not contain more than 30 characters
d) a TextArea that can be edited
I think answer is a)
but again it says WRONG .
answer is not given.
CMIW
TIA
 
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
again a weird one Kumar.
maybe the catch is that the number of rows and coulums can change when you put the data. so it is not up to 3 coulumns. it maybe higher than that.
remember that the text area is produced with scrollbars so u can add more rows and couluns.
the constructor gives it just the initial size.
so the answer maybe is d.
 
R K Singh
Ranch Hand
Posts: 5398
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Roy
Thanks ...
answer is 'a' and 'd'
actually I was asuming 'd' to be uneditable...
MORAL : should read all options carefully... don't read with flying eyes and assume things.
THANKS
reply
    Bookmark Topic Watch Topic
  • New Topic