content: package com.xwintop.xJavaFxTool;
  
  import com.xwintop.xcore.util.javafx.JavaFxSystemUtil;
  import javafx.application.Application;
  import javafx.event.EventHandler;
  import javafx.fxml.FXMLLoader;
  import javafx.scene.Parent;
  import javafx.scene.Scene;
  import javafx.stage.Stage;
  import javafx.stage.WindowEvent;
  import lombok.extern.slf4j.Slf4j;
  
  import java.net.URL;
  import java.util.ResourceBundle;
  
  @Slf4j
  public class RdbmsSyncToolMain extends Application {
      public static void main(String[] args) {
          try {
              launch(args);
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  
      @Override
      public void start(Stage primaryStage) throws Exception {
          double[] screenSize = JavaFxSystemUtil.getScreenSizeByScale(0.74, 0.8);
          FXMLLoader fXMLLoader = RdbmsSyncToolMain.getFXMLLoader();
          ResourceBundle resourceBundle = fXMLLoader.getResources();
          Parent root = fXMLLoader.load();
          primaryStage.setResizable(true);
          primaryStage.setTitle(resourceBundle.getString("Title"));
  //        primaryStage.getIcons().add(new Image("/images/icon.jpg"));
          primaryStage.setScene(new Scene(root, screenSize[0], screenSize[1]));
          primaryStage.show();
          primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>() {
              @Override
              public void handle(WindowEvent event) {
                  System.exit(0);
              }
          });
      }
  
      public static FXMLLoader getFXMLLoader() {
          ResourceBundle resourceBundle = ResourceBundle.getBundle("locale.RdbmsSyncTool");
          URL url = Object.class.getResource("/com/xwintop/xJavaFxTool/fxmlView/debugTools/RdbmsSyncTool.fxml");
          FXMLLoader fXMLLoader = new FXMLLoader(url, resourceBundle);
          return fXMLLoader;
      }
  }
  