wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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:

 
 
subject: Constant width and height of the textfield
 
Similar Threads
applet closing?
my 1st applet....problem!
Restricting the TextField To accept only a set no of characters
Applet - Browser Display
null pointer exception