Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 9
Registered: ‎12-17-2011
My Device: Blackberry Torch
My Carrier: Personal

Re: Refresh Field Label

peter_strange wrote:

"Yes, the datePicker is outside from the Screen class so I can't access the ButtonField in order to refresh it."


Not being rude, but this does not make sense.


In the code I gave, the Button is passed as a parameter to the datePicker method, so it has a reference to it.  Please review the code I suggested again. 

My bad, I didn't realize of that parameter... I've given it a try and it works great.


Thanks a lot and sorry again

New Contributor
Posts: 8
Registered: ‎12-01-2011
My Device: 9800 torch
My Carrier: RIM

Re: Refresh Field Label

Hello ,

         I want to display the datepicker in edit field when edit field focused, please suggest me how to do , i tried in many ways i didnt get, Please provide me with some solution.