mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
if(isConfigFolderExists()) {
//***** Restore frame pos and size
settings=new EasyConfig(settingsFile); //Путь?
if(new File(settingsFile).exists()) {
try {
settings.loadFrame(mainFrame);
} catch (IOException | ConfigException e) {