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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:32:20+00:00 2026-05-25T15:32:20+00:00

I currently wrote a small program for a manager at work. It inputs an

  • 0

I currently wrote a small program for a manager at work. It inputs an invoice number and creates that into a button, going down in a row. Then inputs a date of approval and creates that into a label(on line with the created button). Lastly, creates a label for the date of expire(30 days later)(and again, online with the button created).

It saves this data into 3 files(1 for the button, 1 for the first label and one for the second label). Right now I’m using “ObjectOutputStream” to save the lists of buttons/labels. When the program is opened it re-loads all the data from the files and “re-prints” them onto the screen. The program also gives the user the option of deleting ROs in which case I re-write the data files minus the removed RO.

I am just wondering if there is a better way to do all this and if I’m wasting my time using this approach.

  • 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-25T15:32:20+00:00Added an answer on May 25, 2026 at 3:32 pm

    You should be saving data, not components. Can you construct the buttons, labels, etc on load and only save invoice numbers, date of approval, and date of expiry?

    Also, you could store all data in an arraylist or hashmap and only save that object, rather than 1000’s of smaller objects.

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

Sidebar

Related Questions

I wrote an application that currently runs against a local instance of MySql. I
I have a process that currently runs in a Delphi application that I wrote
So I wrote a small program to try out Boost Filesystem. My program will
I wrote a small program with Boost in c++. It works fine and so
I've wrote a small piece of code that reads the current battery charge/discharge on
I am currently making a small test program for simple file checking. The program
I would like to write a small program that will run other programs. I'm
I just wrote a small python script that gets me all the groups on
I am currently trying to write an addin for PowerPoint that whenever any PowerPoint
I have been writing a small java application (my first!), that does only a

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.