All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.carne.jfx.scene.control.aboutinfo.AboutInfoDialog Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2016-2020 Holger de Carne and contributors, All Rights Reserved.
 *
 * 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 .
 */
package de.carne.jfx.scene.control.aboutinfo;

import java.io.IOException;

import de.carne.jfx.stage.StageController;
import javafx.scene.control.ButtonType;
import javafx.scene.control.Dialog;

/**
 * About info dialog.
 */
public class AboutInfoDialog extends Dialog {

	private AboutInfoDialog() {
		// Make sure this class is not instantiated from outside
	}

	/**
	 * Load the about info dialog.
	 *
	 * @param owner The stage controller owning this dialog.
	 * @return The constructed controller which is bound to the newly created dialog.
	 * @throws IOException if an I/O error occurs during dialog loading.
	 */
	public static AboutInfoController load(StageController owner) throws IOException {
		return owner.loadDialog(c -> new AboutInfoDialog(), AboutInfoController.class);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy