private void poýpulateLogFileConfigurationForm( String logId, String logName, String host, String filePath) { LogFileConfigurationForm configurationForm = LogFileConfigurationForm.getInstance(); configurationForm.setLogId(Integer.parseInt(logId)); configurationForm.getLogNameTextField().setText(logName); configurationForm.getFilePathTextField().setText(filePath); LogFile logFile = LogFileDao.getInstance().findById(Integer.parseInt(logId)); Server server = ServerDao.getInstance().findById(logFile.getServerId()); JComboBox locationCombo = configurationForm.getLocationComboBox(); JComboBox serverCombo = configurationForm.getServerIdComboBox(); if (LocationType.LOCAL.name().equals(host)) { locationCombo.setSelectedItem(LocationType.LOCAL.name()); serverCombo.setEnabled(false); } else { locationCombo.setSelectedItem(LocationType.REMOTE.name()); serverCombo.setSelectedItem(server); } }