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

cdc.perfs.ui.fx.About Maven / Gradle / Ivy

There is a newer version: 0.52.0
Show newest version
package cdc.perfs.ui.fx;

import cdc.ui.fx.FxUtil;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.text.TextFlow;
import javafx.stage.Stage;

public class About extends Stage {
    public About() {
        getIcons().addAll(FxUtil.getApplicationImages());
        setTitle("About CDC Perfs Monitor");
        setResizable(false);

        final TextFlow wTextFlow = new TextFlow();
        wTextFlow.setLineSpacing(5.0);
        wTextFlow.setPadding(new Insets(5.0));

        wTextFlow.getChildren().add(FxUtil.toBoldText("CDC Perfs Monitor"));
        wTextFlow.getChildren().add(FxUtil.toBoldText("\nVersion: "));
        wTextFlow.getChildren().add(FxUtil.toText(cdc.perfs.api.Config.VERSION + " (JavaFx)"));
        wTextFlow.getChildren().add(FxUtil.toText("\n\n(c) Copyright 2010-2019, Damien Carbonne"));

        final Scene scene = new Scene(wTextFlow);
        setScene(scene);
        show();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy