Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4923
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: Properties file ? |
| Date | 2012-01-11 08:13 -0500 |
| Organization | The Wasteland |
| Message-ID | <nospam-20FEEB.08132211012012@news.aioe.org> (permalink) |
| References | <657850d3-2af5-4c99-9677-e18b3ad91bf6@q8g2000yqa.googlegroups.com> <7n5Pq.1608$nn3.361@newsfe16.iad> <9d525b48-8a9a-450b-ae24-398cdaa985f5@f11g2000yql.googlegroups.com> <nospam-CC61BB.21244510012012@news.aioe.org> <0974b569-e6e0-4918-8b46-a5a12b974fcd@r5g2000yqc.googlegroups.com> |
In article <0974b569-e6e0-4918-8b46-a5a12b974fcd@r5g2000yqc.googlegroups.com>, The Nigga <fernandopaivabr@gmail.com> wrote: > I am reading about Preferences API in Java Core book and Javadoc, but > I don't understand how to that API keeps config because it does not > create a file in my package. I need export and import a file.xml of > config. Right, you want to treat the original properties as read-only values; only subsequently modified values of your Properties need be written by invoking putXxx(). Conveniently, the getXxx() methods allow you to specify a default, which should be the value returned by getProperty(). The net effect is that only _changed_ properties are written to the (platform dependent) Preferences store. Similarly, the store may be deleted entirely to restore your (factory) defaults. -- [Please omit signatures when replying.]
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar
Properties file ? The Nigga <fernandopaivabr@gmail.com> - 2012-01-10 13:36 -0800
Re: Properties file ? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-01-10 17:13 -0800
Re: Properties file ? The Nigga <fernandopaivabr@gmail.com> - 2012-01-10 18:09 -0800
Re: Properties file ? "John B. Matthews" <nospam@nospam.invalid> - 2012-01-10 21:24 -0500
Re: Properties file ? The Nigga <fernandopaivabr@gmail.com> - 2012-01-10 19:31 -0800
Re: Properties file ? The Nigga <fernandopaivabr@gmail.com> - 2012-01-11 02:08 -0800
Re: Properties file ? "John B. Matthews" <nospam@nospam.invalid> - 2012-01-11 08:13 -0500
csiph-web