• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

text area

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to use multiple font's in a TextArea in one line .Please throw some light on it?.I have tried it but it's not coming up properly.
Given a TextArea using a proportional pitch font and constructed li
ke this:
TextArea t = new TextArea("12345", 5, 5);
Which statement is true?
A.the displayed width shows exactly five characters one ach line unles
s otherwise constrained .

B.The displayed height is five lines unless otherwise
constrained.
C.The maximum number of characters in a line will be
five.
D.The user will be able to edit the character string

E.The displayed string can use multiple fonts.
The correct option's should be b,d,e.Have a look at it carefully and let me know if am missing something else in this question.
 
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think A should also be correct but not sure about it.I have compiled that programme and it show's only five character's on a line.Option (B) also seem's to be correct.I think Some experienced person can help us in getting the right answer's, question seem's to be just confusing us, every option look's right.
 
nitin sharma
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
The question by fraternity is really confusing me.Somebody, please throw some light on it.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
regarding answer 'a'. We cannot tell how many characters will print depending on the width, it depends on the font. I agree with rest of it.
------------------
Komal Mat
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic