Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2ME - Two Tickers on a form???

 
annamalai murugesan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need to show more than one ticker on a form. Can add one ticker and not the second one onwards. Please help. Is there any restrictions on the no of tickers on a form? Or on any other control? If not, how?
Thanks in advance.
Regards,
Murugesan
Singapore
 
Daryl Wilding-McBride
Author
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Objects of class Screen (i.e. Form, Alert, List, and TextBox) can only have one Ticker, which you set with the setTicker() method. You can have multiple Screens with a ticker on each, but only one ticker on each.
 
annamalai murugesan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot, Daryl.
My colleague showed me a java application(J2ME) which is showing multiple tikcers on a hand-held device. I am not sure how it is done. Or, it may be more than one midlet. Or, multiple forms??? I dont know.
I am still scratching my head as the requirement is very genuine. While i undderstand that one form can have only one ticker, is there any workaround to achieve this? Two midlets, etc...???
Sorry for the delayed response.
Thanks and regards,
Muru
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can draw any number of sticker by directly paint a raw canvas (low level UI API). But that probably does not answer your question. Why don't you ask your colleague on how he did it? Maybe he used a device vendor's proprietary MIDP API library?
 
annamalai murugesan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Michael.
That's interesting - multiple tickers using canvas. I will certainly explore it further and will keep you guys updated of the status. If you have any web resource/URL pertaining to this, pls. do email me at annamalai_murugesan@yahoo.com.
Another interesting user requirement i came across was:
Can we show real-time data(for stocks) as a wall paper on a hand phone or PDA? It may not seem logical - real-time data will always change for every certain period of time. Redrawing the image at the server end and then pulling it from hand phone???
If you have any idea, please do advise.
Once again, thanks a lot.
Regards,
Muru
 
annamalai murugesan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Michael Yuan,
Your suggestion to use canvas worked and it should be the way to do that. After exploring that, realised that even font size, color, etc... could also be changed programmatically.
Thanks a lot, for the help.
Regards,
Muru
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic