aspose file tools*
The moose likes Java Micro Edition and the fly likes Constant width and height of the textfield Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Constant width and height of the textfield" Watch "Constant width and height of the textfield" New topic
Author

Constant width and height of the textfield

carox kaur
Ranch Hand

Joined: Mar 19, 2009
Posts: 52
I am using j2me polish and making a mail application. When I use the de.enough.polish.ui.TextField class and instantiate it with a predefined string "abcd", a width of the box alters with the no. of characters of the string. E.g. if I enter "abcdef" the width of the textfield is of 6 characters, if I enter "abcdefegg" the width of the textfield is of 9 characters...I want the width of the textfiled should be constant and should not be mutable. Following is the code which I have written:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Constant width and height of the textfield
 
Similar Threads
applet closing?
my 1st applet....problem!
Applet - Browser Display
Restricting the TextField To accept only a set no of characters
null pointer exception