• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 607
  • Last Modified:

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
0
scooternh
Asked:
scooternh
1 Solution
 
CEHJCommented:
Would have to run and have a look at the app
0
 
Seaton007Commented:
Windows probably stores the last position/size in the registry after you run the application.
0
 
dpearsonCommented:
I think you're right to expect that it would be stored in a properties file - but I would expect that to be under the user folders.  On Windows that's something of a requirement as the Program Files directory isn't writable for certain Windows installations (e.g. non-admin users).

The app is of course free to choose pretty much any location, but I'd start by looking in either:
Users\<your-name>
or
Users\<your-name>\AppData

Doug
0
 
scooternhAuthor Commented:
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
0
 
dpearsonCommented:
Good hunting!

Doug
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now