×

Discussion Board

Results 1 to 4 of 4

Thread: LWUIT TEXT AREA

Hybrid View

  1. #1
    Registered User
    Join Date
    Jul 2012
    Location
    India
    Posts
    103

    LWUIT TEXT AREA

    Hi
    i developed Rss Application for 2 xml files and displayed it on 2 LWUIT Tabs,but the problem with my LWUIT TextArea,whenever i click on my ListForm(Contains Titles from RssFile),i need to display Description information from Rss File,First time i am able to display the Desciption Related to the Title clicked on ListForm,if i click ListForm next time onwards,i am able to display the same Description again and again on textarea..(Eventhough i am getting Related Description from RssFile)

    Here my Code:

    private void displayCompleteNewsScreen(News detailNews) {

    Label title = new Label(detailNews.getTitle());
    form2.setTitleComponent(title);
    String Description = detailNews.getDescription();
    System.out.println("Description" + Description);//Here i am able to get different Description values Related to myList Screen but in text area it is displaying First one always
    big = new TextArea();

    big.setEditable(false);
    big.setText(Description);

    form2.addComponent(pubDate);
    form2.addComponent(big);
    form2.show();
    }

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: LWUIT TEXT AREA

    What is in - pubDate, why are you always adding it before adding big your new updated TextArea ?

    No need of
    big = new TextArea();
    big.setEditable(false);
    Everytime, you can just try big.setText(Description);

    or if you are creating new big everytime, then also use form2.removeAll(); everytime.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  3. #3
    Registered User
    Join Date
    Jul 2012
    Location
    India
    Posts
    103

    Re: LWUIT TEXT AREA

    Hi thanks for reply

    i have placed form2.removeAll(); method, now it is working fine.....



    Quote Originally Posted by im2amit View Post
    What is in - pubDate, why are you always adding it before adding big your new updated TextArea ?

    No need of
    big = new TextArea();
    big.setEditable(false);
    Everytime, you can just try big.setText(Description);

    or if you are creating new big everytime, then also use form2.removeAll(); everytime.
    Last edited by pavanragi; 2012-08-22 at 08:22.

  4. #4
    Nokia Developer Expert
    Join Date
    May 2012
    Location
    Espoo
    Posts
    224

    Re: LWUIT TEXT AREA

    add form.removeAll() in the beginning of displayCompleteNewsScreen() method might help you.

Similar Threads

  1. can we apply html css to LWUIT Text Area
    By pavanragi in forum Mobile Java General
    Replies: 1
    Last Post: 2012-08-14, 10:29
  2. column in text area
    By kavitha@i-waves.com in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2010-10-14, 09:07
  3. How to create text area field or grawing text area
    By rohit.shah in forum Symbian User Interface
    Replies: 3
    Last Post: 2010-10-02, 11:16
  4. Replies: 2
    Last Post: 2010-09-28, 07:41
  5. text area width
    By kavitha@i-waves.com in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2010-09-27, 05:18

Posting Permissions

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