wood burning stoves
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 Building Microservices this week in the Design 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Constant width and height of the textfield
 
It's not a secret anymore!