×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    127

    how to read a string without changing it?

    Hi,
    I am creating a form where i only want to display some information
    i cannot change anything in it so what should i use for it.
    please help.

  2. #2
    Registered User
    Join Date
    Dec 2008
    Location
    Cochin, Kerala, India
    Posts
    84

    Thumbs up Re: how to read a string without changing it?

    If u want to diaplay anything on the Form just use
    Form frm=new Form("");
    frm.append("msg");
    or
    String str="";
    frm.append(str);

    If u want to get the data displayed also, u use StringItem

    StringItem si=new StringItem("Label", "Text");
    frm.append(si);
    si.getText();
    si.getLabel();

  3. #3
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    127

    Re: how to read a string without changing it?

    Quote Originally Posted by vinuk4u View Post
    If u want to diaplay anything on the Form just use
    Form frm=new Form("");
    frm.append("msg");
    or
    String str="";
    frm.append(str);

    If u want to get the data displayed also, u use StringItem

    StringItem si=new StringItem("Label", "Text");
    frm.append(si);
    si.getText();
    si.getLabel();
    thanks a lot

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: how to read a string without changing it?

    Quote Originally Posted by yatibawri View Post
    Hi,
    I am creating a form where i only want to display some information
    i cannot change anything in it so what should i use for it.
    please help.
    Hello,
    Welcome to the forum nokia developer boards!!!!!
    Well, you can append the string what you want to, on the form, and later in your code you can edit the same and just recompile the code and put the updated jar file on the device.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Registered User
    Join Date
    Dec 2008
    Location
    Cochin, Kerala, India
    Posts
    84

    Smile Re: how to read a string without changing it?

    Thank u yatibawri.

    Have u got all of the solution?

  6. #6
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: how to read a string without changing it?

    I think this link will help u as a beginner


    http://www.java2s.com/Tutorial/Java/...0430__J2ME.htm
    thanks,
    jitu_goldie..

    KEEP TRYING..

Similar Threads

  1. Replies: 2
    Last Post: 2009-07-24, 11:41
  2. How can we read and write the string array through java streams
    By rahulkrishna in forum Mobile Java General
    Replies: 2
    Last Post: 2009-06-03, 14:04
  3. C++ 學習程序2
    By hanwen813 in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 32
    Last Post: 2009-04-02, 09:10
  4. TFileText Read changing method argument value
    By vtheikki in forum Symbian
    Replies: 5
    Last Post: 2007-05-02, 16:58
  5. i get only number if i read a data.txt instead of String
    By mehiii in forum Mobile Java General
    Replies: 1
    Last Post: 2005-08-23, 06:00

Posting Permissions

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