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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:15:53+00:00 2026-05-23T09:15:53+00:00

I am working on tutorial software which help to solve problems of a Financial

  • 0

I am working on tutorial software which help to solve problems of a Financial Book. So it is something like an worksheet kind of thing containing combo-boxes and formatted text boxes. Everything is working as i want except one thing. Is there a way i could save my work done by me any point of time.

Lemme be specific. There are twelve chapters and each chapter contains some 15-20 problems. Each problem is design with combination of text boxes and combo-boxes and some jtabbed panel etc. If i solved half my worksheet and want to save so that i could open it later i open my software. Is there any way to do that. The problem is every sheet have different no of combo-box and text boxes so the variable are also different.

Thanks in advance

  • 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-23T09:15:53+00:00Added an answer on May 23, 2026 at 9:15 am

    You need a model for your worksheet. This model is a data-structure and has nothing (per se) to do with the fact that GUI widgets are used to represent it.

    You save the state of the model — start with simple Serialization — to disk on save. Load on startup.

    Something along these lines allow for uniform treatment of your worksheets.

    public interface PersistentModel {
        boolean save (OutputStream out) throws IOException;
        boolean load (InputStream out) throws IOException;
    }
    public interface SpreadSheet extends PersistentModel {
        Worksheet[] getWorksheets();
        Worksheet getWorksheet(int i); // and other related, etc.
    }
    
    public interface Worksheet extends PersistentModel {
       int id();
       Element get(String name):
       Element[] getElements();
    
       public interface Element<T> extends PersistentModel { 
            String getName();
            T getValue();
            boolean setValue(T v);
       }
    }
    

    Swing uses MVC and you have standard mechanisms of hooking your model (the data structure holding state of the worksheets), and, the GUI (swing likely) that is the presentation of the same. I assume that is not an issue.

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

Sidebar

Related Questions

I'm working on a simple tutorial, and I'd like to randomly generate the positions
I'm working through a tutorial on using OpenSSL and when I try something rather
I'm working on rails tutorial by Michael Hartl like other newbies in rails do.
I have a working code (programmed by a tutorial) but like to dive in
I'm working through a tutorial which includes this code: for position, target in population_gen(population):
I'm trying to get the Poll tutorial working at my Dreamhost account (I don't
I am currently working through this tutorial: Getting Started with jQuery For the two
I'm working through an iPhone tutorial ( link text and it has me put
I'm working through the NerdDinner MVC tutorial and came across this and was wondering
I've followed this otherwise excellent tutorial on getting Xen working with Ubuntu but am

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.