Link to home
Start Free TrialLog in
Avatar of scooternh
scooternh

asked on

Mystified - how does my Java/Swing/Matisse application remember its window size?

Java 5,
Swing,
Matisse,
Windows XP

Hi,
I have a Java Swing application on my windows computer , it was constructed with matisse using Netbeans (6.x I think, not certain).

It did not use an installer, just unzipped the zip file and ran by double clicking a startup script.

If I resize the application and then exit the application, then the next time I restart the application , it remembers the size from the last session.

Since it's Java, and there was no installer involved, I don't expect that information to have been stored in the registry or any of the hidden user directories; I would expect to find a properties file or something similar in the application's own folder space ... but so far have not been able to find anything like that.

Anyone got any suggestion where the application is saving its startup size?

Thanks
-tom
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Would have to run and have a look at the app
Windows probably stores the last position/size in the registry after you run the application.
ASKER CERTIFIED SOLUTION
Avatar of dpearson
dpearson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of scooternh
scooternh

ASKER

Thanks Doug, this was a real pea under the mattress :)
I had actually gone there earlier, but couldnt find it on first pass; your suggestion gave me the nudge to go look again more carefully. I was looking for something under 'Java' the first time, but this time through noticed the C:\Documents and Settings\<username>\Application Data\Sun\<my application name> folder ... and in there was mainFrame.session.xml
Good hunting!

Doug