×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    18

    Text wrapping in javax.microedition.lcdui.List

    Hello,

    I have a problem with text wrapping using the List control. In MIDP1.0 devices, the text part of the list item is wrapped, but in some MIDP2.0 devices (6670, 6680) it is cut off if too long. I am aware I can use MIDP2 method
    setFitPolicy(TEXT_WRAP_ON) and if works fine, but I want to make a MIDP1.0 application which can be used on MIDP2 devices as well.

    I'm using the List control (implicit list) because I need the user to have a menu-like list of items, (like email headers, so that user can select an item and hit "details" menu option to see the rest of the email - just an example).

    Any ideas?

    Thanks!

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: Text wrapping in javax.microedition.lcdui.List

    You could find out the profile of the phone by System.getProperty() with "microedition.profiles" and the act accordingly (execute setFitPolicy() only for MIDP2 models).

    Hartti

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    18

    Re: Text wrapping in javax.microedition.lcdui.List

    I have been thinking of that, but I wasn't able to compile the midlet for MIDP 1.0, and if I compile it for MIDP 2.0, it won't install on MIDP 1.0 devices (even if I try to manually set the midp version property in JAD file.)

  4. #4
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Text wrapping in javax.microedition.lcdui.List

    Hi DrChandra,

    What is hindering you when trying to compile the code for MIDP 1.0?

  5. #5
    Registered User
    Join Date
    Jun 2004
    Posts
    18

    Re: Text wrapping in javax.microedition.lcdui.List

    The constant TEXT_WRAP_ON is not part of MIDP 1.0 specification, so it causes an error in compile time. Are you suggesting there is a way to get around that? I'm using NetBeans IDE and it's compiler currently.

    Thanks

Similar Threads

  1. Text Wrapping
    By roopa_ckr in forum Mobile Java General
    Replies: 1
    Last Post: 2005-10-10, 13:39
  2. ChoiceGroups & text wrapping
    By dlozdan in forum Mobile Java General
    Replies: 0
    Last Post: 2005-06-14, 12:51
  3. Wrapping text in a listbox
    By mark_williams in forum Symbian User Interface
    Replies: 3
    Last Post: 2005-05-31, 14:21
  4. wrapping text in CEikTextListBox
    By nm_dev in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-05-31, 05:49
  5. Replies: 0
    Last Post: 2004-11-24, 18:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •