Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Text box height

 
Debojit Nag
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Could any one give me a solution ( source code, if possible)for having a text box whose height will be 4 times that we get first(by default, and then the height goes on increasing as no. of lines increased).

regards,
Debojit
 
sailesh sirari
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,


use

TextField txt=new TextField("label","text",200,TextField.ANY);

txt.setPreferredSize(-1,200);
 
Debojit Nag
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanx a lot. It really works fine.

Debojit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic