Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Trusted Contributor
arunbiet
Posts: 233
Registered: ‎06-22-2010
My Carrier: blackberry developer

Setting style in labelfield not working

I dont know why,but this line of code does nothing

 

	g.setDrawingStyle(DrawStyle.ELLIPSIS,true);

 I want ellipse style,and i dont want to do it from constructor,rather from the paint method.So can anyone guide me into it?

Please use plain text.
Developer
simon_hain
Posts: 13,817
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Setting style in labelfield not working

as far as i know dynamic changes in the drawing style don't work properly. you could replace the field with another labelfield where this style is set.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Trusted Contributor
arunbiet
Posts: 233
Registered: ‎06-22-2010
My Carrier: blackberry developer

Re: Setting style in labelfield not working

Thats the problem developing for Blackberry,there are many things which are listed in the API and its documentation is clear,but when you implement,it doesnt work properly.Its so frustrating.

Please use plain text.