Article View: borland.public.jbuilder.java.language
Article #16120Saving Mixed Data Types
From: Adam Lubell
Date: Fri, 26 Mar 1999 00:00
Date: Fri, 26 Mar 1999 00:00
26 lines
1457 bytes
1457 bytes
I'm new at Java, and using JBuilder2. I've gone through the provided tutorials, and created few of my own simple programs. Now that I'm trying to write a "real program", I can't find any info on the best way to approach saving data of various types. I need to create a form with some Edit Fields, a Grid and a TextArea. My program will perform some calculations and output a report. I know how to do all of this. What I need to do is find a way of collecting all of the input fields and save and load them from a single data file. I don't need to save the answers, and I want to keep the data file as small as possible. My thought was to use one container object and make it serializable. Is this the best approach? Which standard component is best to use for the container? Any samples, tutorials, books that give advice on how to do this? What do I "search" for in the help? Thanks
Technical Details
Message-ID:
<36FBEEDF.F750F653@sprint.ca>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,9e3749d762323ea0,start X-Google-Attributes: gidf74b3,public From: Adam Lubell <alubell@sprint.ca> Subject: Saving Mixed Data Types Date: 1999/03/26 Message-ID: <36FBEEDF.F750F653@sprint.ca> X-Deja-AN: 459466552 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: alubell@sprint.ca Newsgroups: borland.public.jbuilder.java.language