import javafx application Application import javafx fxml FXMLLoader im

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
public class StartForm extends Application
{
public static void main(String[] args)
{
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception
{
Parent root = FXMLLoader.load(getClass().getResource("start.fxml"));
primaryStage.setTitle("Аниматор динамики коэффициента перколяции на квадратной решетке");
primaryStage.setScene(new Scene(root));
primaryStage.getIcons().add(new Image("logo.png"));
primaryStage.show();
}
}