Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #215

Re: how to print the data

From "ashwinijain" <ashwinijain@THRWHITE.remove-dii-this>
Subject Re: how to print the data
Message-ID <1164694016.524437.241360@45g2000cws.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <1164622771.833612.145020@j72g2000cwa.googlegroups.com>
Date 2011-04-27 15:26 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui

Andrew Thompson wrote:
> 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.

thanks but i want to print the java components on paper..
how can i print it..
how to use printable class?

---
 * 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 | NextPrevious in thread | Next in thread | Find similar


Thread

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