This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Getting started with Java programming language and have Ashish Sarin & J Sharma on-line!
See this thread for details.
Win a copy of Getting started with Java programming language this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Text box height  RSS feed

 
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
Boost this thread!