> Thanks for your help, Mr Thompson and Mr Green(Or should I call you guys
> Andrew and Roedy instead?
I prefer 'Andrew'. Generally when people refer to me as
'Mr Thompson' it is because they are about to ( attempt
to ;) give me a severe criticism.
>..You know, I often get
> confused by my Chinese-English).
You are already way ahead of me.
[ My chinese is horrid (none at all). ]
> http://spaces.msn.com/members/xingyukun1981
..and a picture paints a thousand words. :-)
> So how could that be done? Do I have to get the sizes of all the components
> in the perspective?
No. Only that which is 'changeable'.
In the case you showed, it might be the current
'split setting' of each of the splitpanes, as well
as the overall size and location of the application
(getBounds() -> Rectangle)
But it depends on just how much you intend to
restore. Thus far we have covered the size/shape of
the UI, but that probably only has relevance to the
documents that were displayed in it at the time
it was closed.
Do you also intend to restore the 'opened documents'?
And, at an even finer level, do you intend to have the
caret appear on the line the user was editing/with
the text selection restored..?
How much, and what, you store depends on just how much
you intend to restore for the user.
Note that restoring *documents* and their state can become
very tricky when you have documents that may have been edited
(or deleted) by other programs.

Signature
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"I got a raw deal, so I'm lookin' for a steel.."
Tricky 'Black Steel'
Andrew Thompson - 10 Sep 2005 05:19 GMT
>> So how could that be done? Do I have to get the sizes of all the components
>> in the perspective?
>
> No. Only that which is ..
*user*
> ..'changeable'.
Note that I am only referring to the things that
can be adjusted *by* *the* *user*, as opposed to
things that might be different due to a different
PLAF, screensize, or default font.
[ And if the PLAF is also changeable, you might
simply store the *name* of the PLAF. ]

Signature
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"..I pick up all the pieces and make an island. Might even raise just a
little sand"
Jimi Hendrix 'Voodoo Chile (Slight Return)'
Roedy Green - 10 Sep 2005 12:04 GMT
>it is because they are about to ( attempt
>to ;) give me a severe criticism.
When people call for Mr. Green or Munroe Green, I get a chill. Only
credit card companies and Revenue Canada (the Canadian IRS) call me
that.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
>(Or should I call you guys
>Andrew and Roedy instead?
Every one who likes me calls me Roedy. Those that don't have other
names.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
> There are 2
>pictures in my msn-space:
I looks as first glance that an MSN Space is just a website where you
can upload photos and perhaps some text. If you have a java Applet or
JAWS apps, it is possible MS will let you serve it from that website,
but in any case, that website WON'T do the persisting. That will be
stored on the client site.
If you go the properties route, the persisted data will be in an
ordinary datafile. Your big program is finding a spot for it.
If you go the Preferences route, it will be stored in the Windows
registry or on Linux in a little database.
In either case you will need a signed applet to get permission to
leave persistent information on the client.
If you had a real website with a J2EE server on it, then you could
persist data on the server or via cookies.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.