import Interfaces.impls.CollectionsCarList;
//import Interfaces.impls.DataBaseCarList;
import Objects.Automobile;

import controllers.MainController;
import controllers.MainWindowController;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

import javax.imageio.ImageIO;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.sql.Connection;
import java.util.Timer;
import java.util.TimerTask;

public class Main extends Application {
    Connection conn = null;
    private Stage primaryStage;
    private static final String iconImageLoc =
            //"http://icons.iconarchive.com/icons/scafer31000/bubble-circle-3/16/GameCenter-icon.png";
            "file:dir\\addAuto.png";
    private Timer notificationTimer = new Timer();

    @Override
    public void start(Stage primaryStage) throws Exception{
        System.out.println(System.getProperty("user.dir"));
        FXMLLoader fxmlLoader=new FXMLLoader();
        fxmlLoader.setLocation(getClass().getResource("/fxml/main.fxml"));
        Parent root = fxmlLoader.load();
        MainController mainController = fxmlLoader.getController();
        mainController.setMainStage(primaryStage);

        primaryStage.setTitle("Учет проведения технического обслуживания автомобилей");
        primaryStage.setScene(new Scene(root, 800, 600));

        primaryStage.setMinWidth(800);
        primaryStage.setMinHeight(600);
        primaryStage.show();

        testData();
    }
    private void testData(){

    /*CollectionsCarList carList = new CollectionsCarList();
    DataBaseCarList dataBaseCarList = new DataBaseCarList();

    Automobile automobile = new Automobile();
    automobile.setBrand("Audi");
    automobile.setModel("A6Quttro");
    automobile.setGarNumb("2121");
    automobile.setRegNumb("333");
    automobile.setEngNumb("x43333");
    automobile.setEngVol("3.2");
    automobile.setVinCode("zxfc 12345678");
    automobile.setYearsOfRel("2014");
    automobile.setServInt("10000");
    automobile.setSpdVol("9455");
    automobile.setServLast("545");

    Automobile automobile2 = new Automobile();
    automobile2.setBrand("Toyota");
    automobile2.setModel("Camry");
    automobile2.setGarNumb("2122");
    automobile2.setRegNumb("444");
    automobile2.setEngNumb("x65555");
    automobile2.setEngVol("3.2");
    automobile2.setVinCode("xcc 444555");
    automobile2.setYearsOfRel("2014");
    automobile2.setServInt("10000");
    automobile2.setSpdVol("9200");
    automobile2.setServLast("800");

    carList.add(automobile);
    carList.add(automobile2);
    dataBaseCarList.add(automobile);
    dataBaseCarList.add(automobile2);

*/
    }

    public static void main(String[] args) {
        launch(args);


    }

}

@@ -1611,1216 +1611,25 @@
     
-testData();%0A    %7D%0A    private void testData()%7B%0A%0A    /*CollectionsCarList carList = new CollectionsCarList();%0A    DataBaseCarList dataBaseCarList = new DataBaseCarList();%0A%0A    Automobile automobile = new Automobile();%0A    automobile.setBrand(%22Audi%22);%0A    automobile.setModel(%22A6Quttro%22);%0A    automobile.setGarNumb(%222121%22);%0A    automobile.setRegNumb(%22333%22);%0A    automobile.setEngNumb(%22x43333%22);%0A    automobile.setEngVol(%223.2%22);%0A    automobile.setVinCode(%22zxfc 12345678%22);%0A    automobile.setYearsOfRel(%222014%22);%0A    automobile.setServInt(%2210000%22);%0A    automobile.setSpdVol(%229455%22);%0A    automobile.setServLast(%22545%22);%0A%0A    Automobile automobile2 = new Automobile();%0A    automobile2.setBrand(%22Toyota%22);%0A    automobile2.setModel(%22Camry%22);%0A    automobile2.setGarNumb(%222122%22);%0A    automobile2.setRegNumb(%22444%22);%0A    automobile2.setEngNumb(%22x65555%22);%0A    automobile2.setEngVol(%223.2%22);%0A    automobile2.setVinCode(%22xcc 444555%22);%0A    automobile2.setYearsOfRel(%222014%22);%0A    automobile2.setServInt(%2210000%22);%0A    automobile2.setSpdVol(%229200%22);%0A    automobile2.setServLast(%22800%22);%0A%0A    carList.add(automobile);%0A    carList.add(automobile2);%0A    dataBaseCarList.add(automobile);%0A    dataBaseCarList.add(automobile2);%0A%0A*/%0A    %7D
+%0A    %7D%0A    %0A%0A    
 %0A%0A  

add source