Java tutorial
package com.properned.application; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; import javafx.fxml.FXML; import javafx.scene.control.Label; import javafx.scene.control.TextArea; import org.apache.commons.io.FileUtils; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import com.properned.application.preferences.PropernedProperties; /** * Properned is a software that can be used to edit java properties files 2015 * Alexandre NEDJARI * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. * * @author Alexandre NEDJARI * @since 28 october 2015 */ public class AboutController { @FXML private TextArea textAreaLicence; @FXML private Label labelApplication; @FXML private Label labelAuthorValue; private Logger logger = LogManager.getLogger(this.getClass()); public void initialize() throws IOException, URISyntaxException { logger.info("Initialize about controller"); labelApplication.setText(PropernedProperties.getInstance().getApplicationPresentation()); labelAuthorValue.setText(PropernedProperties.getInstance().getAuthor()); try { String licence = FileUtils.readFileToString(new File("linkedlibrairies.txt")); textAreaLicence.setText(licence); } catch (IOException e) { Properned.getInstance().showError(MessageReader.getInstance().getMessage("error.load.licenceFile"), e); } } }