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 8349203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:55:26+00:00 2026-06-09T07:55:26+00:00

relatively self explanatory, I have a JTable (table) and the DefaultTableModel (model) . I

  • 0

relatively self explanatory, I have a JTable (table) and the DefaultTableModel (model). I would like to save the contents of the JTable to a file, then read them into the JTable at a later time. How can i do this?

More Details: the JTable contains short strings, and there shouldn’t be more than, say 50KB of data toal.

  • 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-09T07:55:27+00:00Added an answer on June 9, 2026 at 7:55 am

    DefaultTableModel implements Serializable. So the simplest solution would be to use an ObjectOutputStream and to call writeObject() with your model.

    Note: Remember that objects which are hold by the DefaultDataModel needs to be Serialazable

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a relatively small database that I would like to generate a diagram
I have a relatively complex query, with several self joins, which works on a
I have taken over a Windows-CE 6.0 application that I would like to port
I am relatively new to writing in C. I have self taught myself using
I'm trying to diagnose a WCF service that is self-hosted in a relatively simple
Im relatively new to the Android world but I have a quick question. I
I am relatively green with C# and WCF. I have landed on a project
I have written some relatively simple jQuery plug-ins, but I am contemplating writing something
I am relatively new to phonegap and I have recently set up HTTPS/SSL on
I am relatively new to django. I have defined my db schema and validated

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.