-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task2 #2
base: master
Are you sure you want to change the base?
Conversation
int y = prefs.getInt(PREF_KEY_WINDOW_Y + i, 0); | ||
int width = prefs.getInt(PREF_KEY_WINDOW_WIDTH + i, 0); | ||
int height = prefs.getInt(PREF_KEY_WINDOW_HEIGHT + i, 0); | ||
JInternalFrame frame = new GameWindow(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а вы каждое окно как игровое создаете?
saveState(); | ||
} | ||
|
||
private void saveState() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
кажется, что загрузка и сохранение - это не ответственность MainFrame.
+подумайте над тем, что я захочу как-то по-разному сохранять окна (нужна соответствующая абстракция).
No description provided.