gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 17:40:57 24 4
gpt4 key购买 nike

我想删除它们,因为由于某种原因我的表单在启动时恢复到错误的尺寸。

我在用户目录中没有找到任何内容,但我不确定要查找什么。

我对 Windows 和 Linux 感兴趣。

最佳答案

来自here :

Session state is stored locally, relative to the user's home directory, by the LocalStorage save and load methods. The startup method must set the ApplicationContext vendorId and applicationId properties to ensure that the correct local directory is selected on all platforms. For example, on Windows XP, the full pathname for filename "session.xml" is typically:

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

Where the value of ${userHome} is the the value of the Java System property "user.home". On Solaris or Linux the file is:

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

and on OSX:

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

关于java - Swing 应用程序框架的表单设置存储在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/611005/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com