Re: JTable: How to memorize the width of the columns ?
- From: Michael Rauscher <michlmann@xxxxxx>
- Date: Tue, 29 Aug 2006 07:06:03 +0200
Dado schrieb:
I found the next example of saving column properties:
It's an example of saving table data.
But I don't understand what is .csv, why that extension and how to read it
CSV is an abbreviation for Comma Separated Values or Character Separated Values. A file in CSV format is a text file which usually contains records which field-values are separated by a special character e. g. a comma. The output of the code you quoted in your last post could look like this:
Name,First Name,Sex
Smith,Trevor,Male
Miller,Marlene,Female
As long there is no really good reason for storing properties in CSV files, don't do it.
Using java.util.prefs.Preferences your configuration data is stored in an implementation-depended backing store. E. g. in Windows it's stored in the registry.
If you don't want an implementation-dependend backing store (because you want the preferences be editable by an ordinary text editor for example) you can use java.util.Properties and store/load it to/from a properties file.
Bye
Michael
.
- References:
- JTable: How to memorize the width of the columns ?
- From: Dado
- Re: JTable: How to memorize the width of the columns ?
- From: johnmmcparland
- Re: JTable: How to memorize the width of the columns ?
- From: Dado
- JTable: How to memorize the width of the columns ?
- Prev by Date: a few questions about working with a versioned project
- Next by Date: jdbTable select column
- Previous by thread: Re: JTable: How to memorize the width of the columns ?
- Next by thread: Move scrollbar from a JButton
- Index(es):