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

  • Home
  • SEARCH
  • 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 6972515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:58:43+00:00 2026-05-27T16:58:43+00:00

I have a Paper class that has 4 attributes. public class Paper(int id, String

  • 0

I have a Paper class that has 4 attributes.

public class Paper(int id, String author, String title, int rank){

}

Then I have a LinkedList that contains the paper object.

I have a GUI that displays the paper object in the JTextArea. GUI has buttons that let users to add paper, delete and save the file. When users press save button the Paper objects are saved in a txt file as follows:

46,Evolutionary Comp,Michael Smith,12/01/10,4 
61,Fuzzy Logic and App,John Peterson,13/01/10,3 
118,Neural Networks,Arthur London,20/01/10,5 
200,Evolutionary Comp,Scott Jones,30/01/10,1 
210,Fuzzy Logic and App,Joe Wang,01/02/10,4 

How do I display the content of txt file in the the JTextArea. Paper class has toString() method that prints the data of Paper Object.

Thanks. If the question is not very clear please make a comment and I will try and make it as clear as possible.

  • 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-05-27T16:58:45+00:00Added an answer on May 27, 2026 at 4:58 pm

    JTextarea.append(string) worked perfectly for me. Thanks

    // addPaper() returns paper object
    displayTxtArea.append(addPaper().toString());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to hand in a software project that requires either a paper or
So i have a form that on paper is 40 pages long. I was
I have a 128-bit string, and my supervisor has asked me to represent those
I have a function that gets an int value from the user and assigns
I have a scientific paper under review, and a referee asked for my R
I have the types Rock , Paper , and Scissors . These are components,
I have a partial view (UserControl) that implements a simple pager in my Asp.Net
in my class i have an array defined like this class t { var
I have a image that I create using PHP and I want my end
I have created a simple map app that shows the local garage sales in

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.