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
Developer
omri
Posts: 74
Registered: ‎07-17-2008
My Device: Not Specified

how to set max text length to unlimited (and real time clock sidenote)

Is there a way to create TextField fields that can have unlimited size of length it them?

 

as a side note, is there a way i can register to an event that will happen every second?

like addRealtimeClockListener, but for a second instead of minute.

 

 

 

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,690
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: how to set max text length to unlimited (and real time clock sidenote)

There is no way to specify an unlimited number or characters. 

 

There are a couple of ways to schedule something to run at a given interval.  The first is to use a Timer and TimerTask.  Note that this does not gaurantee that a method will run exactly on the second.

 

A second option is to create a thread that loops and contains a 1 second sleep call.  You can then perform your action every second.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
omri
Posts: 74
Registered: ‎07-17-2008
My Device: Not Specified

Re: how to set max text length to unlimited (and real time clock sidenote)

Thanks MSohm, you solved my issue #2.

About #1, would it take the full memory space if i specify something like the short max value?

or will it resize it self depending on its content? 

Please use plain text.