View Single Post
Old 10-26-2009, 07:51 AM   #3 (permalink)
renuka_anil
Thumbs Must Hurt
 
Join Date: Mar 2007
Location: India
Model: 8100
Carrier: Airtel
Posts: 64
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default set height LabelField

try this

protected void layout(int width, int height){
super.layout(lblWidth, lblHeight);
setExtent(lblWidth, lblHeight);
}

lblWidth is width of the label
lblHeight is height of label

both are calculated..
__________________
Crazy for BlackBerry

Last edited by renuka_anil : 10-26-2009 at 07:54 AM.
Offline   Reply With Quote