Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

newline issues with J2ME?

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone else experienced any issues using "\n" or '\n' in J2ME. I've noticed that the T616 does not recognize "\n" when appending to a menu as follows:

Thanks,
Greg
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding is that there are no newline characters in midp. Or atleast, manufacturers are not required to implement a newline character. Its one of my personal pet peeves in UI design, but atleast it forces you to be consistent.
 
Greg Schwartz
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone verify that MIDP doesn't suppport newline characters as mentioned above?

Without the support of newline characters, is it possible to control what text appears on what line in a List. I am would like to have a list of items, each of which contain certain number of components. These components need to each appear on a separate line or they would obviously run off of the screen. At the same time, these components must be part of one list selection when scrolling down the list.

Currently I am doing the following:



If anyone has any suggestions on how to accomplish this without using newline characters, please let me know.

Thanks!
 
Would anybody like some fudge? I made it an hour ago. And it goes well with a tiny ad ...
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic