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
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:

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Constant width and height of the textfield