简体   繁体   English

Swing 应用框架的表单设置存储在哪里?

[英]Where are the form settings of the Swing Application Framework stored?

I want to delete them, because for some reason my forms are restored to the wrong dimensions on startup.我想删除它们,因为由于某种原因,我的 forms 在启动时恢复到错误的尺寸。

I didn't find anything in my user directory, but I'm not event sure what to look for.我没有在我的用户目录中找到任何东西,但我不确定要查找什么。

I'm interested about Windows and Linux.我对 Windows 和 Linux 感兴趣。

From here :这里

Session state is stored locally, relative to the user's home directory, by the LocalStorage save and load methods. Session state 存储在本地,相对于用户的主目录,通过 LocalStorage 保存和加载方法。 The startup method must set the ApplicationContext vendorId and applicationId properties to ensure that the correct local directory is selected on all platforms.启动方法必须设置 ApplicationContext vendorId 和 applicationId 属性,以确保在所有平台上选择正确的本地目录。 For example, on Windows XP, the full pathname for filename "session.xml" is typically:例如,在 Windows XP 上,文件名“session.xml”的完整路径名通常为:

${userHome}\Application Data\${vendorId}\${applicationId}\session.xml ${userHome}\Application Data\${vendorId}\${applicationId}\session.xml

Where the value of ${userHome} is the the value of the Java System property "user.home".其中 ${userHome} 的值是 Java 系统属性“user.home”的值。 On Solaris or Linux the file is:在 Solaris 或 Linux 上,文件为:

${userHome}/.${applicationId}/session.xml ${userHome}/.${applicationId}/session.xml

and on OSX:在 OSX 上:

${userHome}/Library/Application Support/${applicationId}/session.xml ${userHome}/Library/Application Support/${applicationId}/session.xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM