jQuery in Action, 2nd edition*
The moose likes Java Micro Edition and the fly likes Text box height Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Text box height" Watch "Text box height" New topic
Author

Text box height

Debojit Nag
Ranch Hand

Joined: Jul 19, 2005
Posts: 44
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


Thanks,<br />Debojit Nag
sailesh sirari
Greenhorn

Joined: Aug 16, 2005
Posts: 9
hi,


use

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

txt.setPreferredSize(-1,200);
Debojit Nag
Ranch Hand

Joined: Jul 19, 2005
Posts: 44
Hi
Thanx a lot. It really works fine.

Debojit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Text box height