Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #198
| From | "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: how to print the data |
| Message-ID | <1164622771.833612.145020@j72g2000cwa.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1164616331.829891.249770@n67g2000cwd.googlegroups.com>< |
| Date | 2011-04-27 15:26 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui ashwinijain wrote: ... > > > even i want to save that form as it is (i mean, i want to save that > > > data with its GUI)... There are a number of ways (and levels) of saving and restoring the state of a GUI. Here are some.. - implement serializable on the classes*, then write/restore them as required. That is fragile across class version changes (breaks). - If using 1.4+, use the XMLDecoder/Encoder for the same basic thing. * Although you might store/restore 'the frame' and all its components, it might makes sense to store a more limited form of the data, such as a CSV file that is the data in the JTable. If that is the case, simply create a custom object to contain the data of interest (or store the Vector that is the data, etc.) - this can even help prevent the class version changing when using serialisation. - Use Properties(?) class - Use the Web-Start API PersistenceService The last two will only accept token/value String's, AFAIR. HTH Andrew T. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
how to print the data wit "ashwinijain" <ashwinijain@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: how to print the data "Srik" <srik@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: how to print the data "ashwinijain" <ashwinijain@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: how to print the data "Srik" <srik@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: how to print the data "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: how to print the data "ashwinijain" <ashwinijain@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: how to print the data "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: how to print the data "ashwinijain" <ashwinijain@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: how to print the data "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: how to print the data "Ian Wilson" <ian.wilson@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: how to print the data "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
csiph-web