// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package demo;

import javafx.application.Application;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.stage.Stage;

public class TrueJavaFXGUISplitMain extends Application {
    @Override
    public void start(Stage stg) throws Exception {
        stg.setTitle("True JavaFX GUI");
        FXMLLoader loader = new FXMLLoader(getClass().getResource("JavaFXGUISplit.fxml"));
        Scene scn = new Scene((Parent)loader.load());
        scn.getStylesheets().add(getClass().getResource("JavaFXGUI.css").toString());
        stg.setScene(scn);
        stg.show();
        TrueJavaFXGUISplitForm f = (TrueJavaFXGUISplitForm)loader.getController();
        f.setNumber(1.0);
        f.calcClick();
    }
    public static void main(String[] args) {
        Application.launch(TrueJavaFXGUISplitMain.class, args);
    }
}
