Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7883929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:39:51+00:00 2026-06-03T04:39:51+00:00

I am trying the RSS Feed code from this website (http://javamix.wordpress.com/category/programs/rss-feed/) It worked fine.

  • 0

I am trying the RSS Feed code from this website (http://javamix.wordpress.com/category/programs/rss-feed/) It worked fine. I would like to display results in GUI instead. I’ve created a JTextArea to append the elements but the results is ‘loaded’ instead of being listed out. Thanks.

Original:

System.out.println("Title: " + getElementValue(element,"title"));
System.out.println("Link: " + getElementValue(element,"link"));
System.out.println("Publish Date: " + getElementValue(element,"pubDate"));

I’ve created a JTextArea to display the result:

for (int i-0; i<nodes.getLength();i++)
{
     Element element = (Element)nodes.item(i);

     JTextArea textArea = new JTextArea();
     textArea.setBounds(10, 11, 864, 540);
     textArea.setWrapStyleWord(true);
     getContentPane().add(textArea);

     textArea.append("Title: " + getElementValue(element,"title") + "\n");
     textArea.append("Link: " + getElementValue(element,"link") + "\n");
     textArea.append("Publish Date: " + getElementValue(element,"pubDate") + "\n"); 
}

I’m a new user and not allowed to upload pictures, but there’s the link 🙂 I need a full list of results, displayed in the GUI.

My result (Title, Link, Publish Date remains static while the result was loaded) >>> Refer Screenshot My Result

Console (A full list of result) >>> Refer Screenshot Console

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:39:54+00:00Added an answer on June 3, 2026 at 4:39 am

    You are making a new TextArea every time in the Loop.
    Move the declaration and instatiation of the TextArea to before the loop.

    Like this:

    JTextArea textArea = new JTextArea();
    textArea.setBounds(10, 11, 864, 540);
    textArea.setWrapStyleWord(true);
    getContentPane().add(textArea);
    for (int i = 0; i < nodes.getLength();i++)
    {
         Element element = (Element)nodes.item(i);
    
         textArea.append("Title: " + getElementValue(element,"title") + "\n");
         textArea.append("Link: " + getElementValue(element,"link") + "\n");
         textArea.append("Publish Date: " + getElementValue(element,"pubDate") + "\n"); 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to to use this class http://robbyonrails.com/articles/2005/05/11/parsing-a-rss-feed but am not sure where to
I'm trying to do a CURL call to an RSS feed from a wordpress,
Hay, i'm trying to parse an RSS feed from a wordpress blog. So far
Am trying to parse the RSS feed from www.ted.com/talks/rss, I can access all normal
I am trying to retrieve RSS feed from Yahoo SQL API and storing it
I'm trying to use an RSS feed from my blog on the news section
I am trying with the code below to get a bing rss news feed,
I'm trying to load the parsed html data from an rss feed using a
I'm trying to create an image gallery from an rss feed with the galleryview
I'm trying to format a date from a RSS feed: Mon, 27 Feb 2012

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.