• Post Reply Bookmark Topic Watch Topic
  • New Topic

Text box height  RSS feed

 
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
 
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
 
That new kid is a freak. Show him this tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!