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.

inside custom component

Java Development

Reply
New Developer
Oscar
Posts: 18
Registered: ‎07-28-2008
My Device: Not Specified

DateField question...

Hi.

 

Is possible to know which subfield gets focus in a DateField object?. DateField has a method for this but it is protected.

 

Thanks.

Please use plain text.
Developer
mreed
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: DateField question...

You can override classes and make any non final methods more visible.

 

 

private class MyDateField extends DateField { public int getCurrentSubfield() { return super.getCurrentSubfield(); } }

 

 

 

Please use plain text.