Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javafx.event.ActionEvent;
- import javafx.fxml.FXML;
- import javafx.fxml.FXMLLoader;
- import javafx.fxml.Initializable;
- import javafx.scene.Node;
- import javafx.scene.Parent;
- import javafx.scene.Scene;
- import javafx.scene.chart.LineChart;
- import javafx.scene.chart.XYChart;
- import javafx.scene.control.Button;
- import javafx.scene.control.TextField;
- import javafx.scene.layout.AnchorPane;
- import javafx.scene.layout.BorderPane;
- import javafx.scene.web.WebEngine;
- import javafx.scene.web.WebView;
- import javafx.stage.Modality;
- import javafx.stage.Stage;
- import javax.swing.*;
- import java.io.IOException;
- import java.net.URL;
- import java.sql.*;
- import java.text.SimpleDateFormat;
- import java.util.Date;
- import java.util.ResourceBundle;
- import java.util.logging.Level;
- import java.util.logging.Logger;
- public class Controller implements Initializable {
- @FXML
- private Button button = new Button();
- @FXML
- private TextField textField1;
- @FXML
- private TextField textField2;
- @FXML
- private TextField textField3;
- @FXML
- private TextField textField4;
- @FXML
- private TextField textField5;
- @FXML
- private TextField textField6;
- @FXML
- private TextField textField7;
- @FXML
- private TextField textField8;
- private int t = 70;
- private int v = 100;
- private double N;
- @FXML
- public WebView webView;
- @FXML
- private WebView mery;
- @FXML
- private WebView vibronas;
- @FXML
- private WebView tvb;
- @FXML
- private WebView defekt;
- @FXML
- private WebView pironas;
- @FXML
- private WebView ttxpiro;
- @FXML
- private LineChart<String,Double> lineChart;
- @FXML
- private Button btnLoad = new Button();
- private Connection conn;
- @Override
- public void initialize(URL location, ResourceBundle resources) {
- WebEngine webEngine0 = webView.getEngine();//ошибка
- webEngine0.load(getClass().getResource("/html/us.html").toExternalForm());
- WebEngine webEngine1 = mery.getEngine();
- webEngine1.load(getClass().getResource("/html/mery.html").toExternalForm());
- WebEngine webEngine2 = vibronas.getEngine();
- webEngine2.load(getClass().getResource("/html/vibronas.html").toExternalForm());
- WebEngine webEngine3 = tvb.getEngine();
- webEngine3.load(getClass().getResource("/html/ttxvib.html").toExternalForm());
- WebEngine webEngine4 = defekt.getEngine();
- webEngine4.load(getClass().getResource("/html/defekt.html").toExternalForm());
- WebEngine webEngine5 = pironas.getEngine();
- webEngine5.load(getClass().getResource("/html/pironas.html").toExternalForm());
- WebEngine webEngine6 = ttxpiro.getEngine();
- webEngine6.load(getClass().getResource("/html/ttxpiro.html").toExternalForm());
- }
- @FXML
- private void press(ActionEvent event) throws IOException {
- FXMLLoader loader = new FXMLLoader(getClass().getResource("res.fxml"));//ошибка
- BorderPane root = (BorderPane) loader.load();
- Stage dialogStage = new Stage();
- dialogStage.setTitle("Edit Profile");
- dialogStage.initModality(Modality.WINDOW_MODAL);
- Scene scene = new Scene(root);
- dialogStage.setScene(scene);
- }
- @FXML
- private void loadChar(ActionEvent event){
- String query = "SELECT data,N FROM books ORDER BY data ASC;";
- XYChart.Series<String, Double> series = new XYChart.Series<String, Double>();
- try {
- //Connect DB;
- conn = connectDB();
- //execute query
- ResultSet resultSet = conn.createStatement().executeQuery(query);
- while (resultSet.next()){
- series.getData().add(new XYChart.Data<String, Double>(resultSet.getString(1),resultSet.getDouble(2)));
- }
- lineChart.getData().add(series);
- }catch (Exception e){
- }
- }
- private Connection connectDB(){
- try {
- String urlDB = "jdbc:sqlite:books.db";
- String user = "root";
- String password = "1234";
- //Connect DB;
- Connection connection = DriverManager.getConnection(urlDB,user,password);
- System.out.println("Подключение успешно!");
- return connection;
- } catch (SQLException e) {
- Logger.getLogger(Controller.class.getName()).log(Level.SEVERE,null,e);
- }
- return null;
- }
- @FXML
- private void result(){
- String s1 = textField1.getText();
- String s2 = textField2.getText();
- String s3 = textField3.getText();
- String s4 = textField4.getText();
- String s5 = textField5.getText();
- String s6 = textField6.getText();
- String s7 = textField7.getText();
- String s8 = textField8.getText();
- int t1 = Integer.parseInt(s1);
- int t2 = Integer.parseInt(s2);
- int t3 = Integer.parseInt(s3);
- int t4 = Integer.parseInt(s4);
- int t5 = Integer.parseInt(s5);
- int t6 = Integer.parseInt(s6);
- int t7 = Integer.parseInt(s7);
- int t8 = Integer.parseInt(s8);
- if ((t1 < t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Агрегат в исправном состоянии!");
- } else if((t1 > t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 > v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая опора в критическом состоянии!");
- } else if((t1 < t) && (t2 > t) && (t3 < t) && (t4 < t) && (t5 < v) && (t6 > v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Вторая опора в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 > t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 > v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Третья опора в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 < t) && (t4 > t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Четвёртая опора в критическом состоянии!");
- } else if((t1 > t) && (t2 > t) && (t3 < t) && (t4 < t) && (t5 > v) && (t6 > v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая и вторая опоры в критическом состоянии!");
- }else if((t1 > t) && (t2 < t) && (t3 > t) && (t4 < t) && (t5 > v) && (t6 < v) && (t7 > v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая и третья опоры в критическом состоянии!");
- }else if((t1 > t) && (t2 < t) && (t3 < t) && (t4 > t) && (t5 > v) && (t6 < v) && (t7 < v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Первая и четвёртая опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 > t) && (t3 > t) && (t4 < t) && (t5 < v) && (t6 > v) && (t7 > v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Вторая и третья опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 > t) && (t3 < t) && (t4 > t) && (t5 < v) && (t6 > v) && (t7 < v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Вторая и четвёртая опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 > t) && (t4 > t) && (t5 < v) && (t6 < v) && (t7 > v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Третья и четвёртая опоры в критическом состоянии!");
- } else if((t1 > t) && (t2 > t) && (t3 > t) && (t4 < t) && (t5 > v) && (t6 > v) && (t7 > v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая, вторая и третья опоры в критическом состоянии!");
- } else if((t1 > t) && (t2 > t) && (t3 < t) && (t4 > t) && (t5 > v) && (t6 > v) && (t7 < v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Первая, вторая и четвертая опоры в критическом состоянии!");
- } else if((t1 > t) && (t2 < t) && (t3 > t) && (t4 > t) && (t5 > v) && (t6 < v) && (t7 > v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Первая, третья и четвертая опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 > t) && (t3 > t) && (t4 > t) && (t5 < v) && (t6 > v) && (t7 > v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Вторая, третья и четвертая опоры в критическом состоянии!");
- } else if((t1 > t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 < v) && (t6 > v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая и вторая опоры в критическом состоянии!");
- } else if((t1 > t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 > v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая и третья опоры в критическом состоянии!");
- } else if((t1 > t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Первая и четвертая опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 > t) && (t3 < t) && (t4 < t) && (t5 > v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая и вторая опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 > t) && (t3 < t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 > v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Вторая и третья опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 > t) && (t3 < t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Вторая и четвертая опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 > t) && (t4 < t) && (t5 > v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая и третья опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 > t) && (t4 < t) && (t5 < v) && (t6 > v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Вторая и третья опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 > t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Третья и четвертая опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 < t) && (t4 > t) && (t5 > v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая и четвартая опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 < t) && (t4 > t) && (t5 < v) && (t6 > v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Вторая и четвартая опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 < t) && (t4 > t) && (t5 < v) && (t6 < v) && (t7 > v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Третья и четвартая опоры в критическом состоянии!");
- } else if((t1 > t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая опора в критическом состоянии!");
- } else if((t1 < t) && (t2 > t) && (t3 < t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Вторая опора в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 > t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Третья опора в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 < t) && (t4 > t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Четвёртая опора в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 > v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая опора в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 < v) && (t6 > v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Вторая опора в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 > v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Третья опора в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Четвёртая опора в критическом состоянии!");
- } else if((t1 > t) && (t2 > t) && (t3 > t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая, вторая и третья опоры в критическом состоянии!");
- } else if((t1 > t) && (t2 > t) && (t3 < t) && (t4 > t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая, вторая и четвёртая опоры в критическом состоянии!");
- } else if((t1 > t) && (t2 < t) && (t3 > t) && (t4 > t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая, третья и четвёртая опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 > t) && (t3 > t) && (t4 < t) && (t5 < v) && (t6 < v) && (t7 < v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Вторая, третья и четвёртая опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 > v) && (t6 > v) && (t7 > v) && (t8 < v)){
- JOptionPane.showMessageDialog(null, "Первая, вторая и третья опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 > v) && (t6 > v) && (t7 < v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Первая, вторая и четвёртая опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 > v) && (t6 < v) && (t7 > v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Первая, третья и четвёртая опоры в критическом состоянии!");
- } else if((t1 < t) && (t2 < t) && (t3 < t) && (t4 < t) && (t5 < v) && (t6 > v) && (t7 > v) && (t8 > v)){
- JOptionPane.showMessageDialog(null, "Вторая, третья и четвёртая опоры в критическом состоянии!");
- }
- else {
- JOptionPane.showMessageDialog(null, "Агрегат в критическом состоянии!");
- }
- N = Math.sqrt(Math.pow(Double.parseDouble(textField1.getText())/t, 2) + Math.pow(Double.parseDouble(textField2.getText())/t, 2) + Math.pow(Double.parseDouble(textField3.getText())/t, 2) + Math.pow(Double.parseDouble(textField4.getText())/t, 2) + Math.pow(Double.parseDouble(textField5.getText())/v, 2) + Math.pow(Double.parseDouble(textField6.getText())/v, 2) + Math.pow(Double.parseDouble(textField7.getText())/v, 2) + Math.pow(Double.parseDouble(textField8.getText())/v, 2));
- //Инициализация БД
- java.util.Date date = new Date();
- SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy.MM.dd");
- conn = connectDB();
- try{
- Statement statement = conn.createStatement();
- statement.execute("CREATE TABLE IF NOT EXISTS BOOKS (DATA VARCHAR(30), N INT, VIBRO INT, PIRO INT); ");
- PreparedStatement statement1 = conn.prepareStatement("INSERT INTO BOOKS (DATA, N, VIBRO, PIRO) VALUES (?,?,?,?);");
- statement1.setString(1, simpleDateFormat.format(date));
- statement1.setDouble(2, N);
- statement1.setInt(3, t5);
- statement1.setInt(4, t1);
- statement1.execute();
- PreparedStatement statement2 = conn.prepareStatement("INSERT INTO BOOKS (DATA, N, VIBRO, PIRO) VALUES (?,?,?,?);");
- statement2.setString(1, simpleDateFormat.format(date));
- statement2.setDouble(2, N);
- statement2.setInt(3, t6);
- statement2.setInt(4, t2);
- statement2.execute();
- PreparedStatement statement3 = conn.prepareStatement("INSERT INTO BOOKS (DATA, N, VIBRO, PIRO) VALUES (?,?,?,?);");
- statement3.setString(1, simpleDateFormat.format(date));
- statement3.setDouble(2, N);
- statement3.setInt(3, t7);
- statement3.setInt(4, t3);
- statement3.execute();
- PreparedStatement statement4 = conn.prepareStatement("INSERT INTO BOOKS (DATA, N, VIBRO, PIRO) VALUES (?,?,?,?);");
- statement4.setString(1, simpleDateFormat.format(date));
- statement4.setDouble(2, N);
- statement4.setInt(3, t8);
- statement4.setInt(4, t4);
- statement4.execute();
- System.out.println("Данные добавлены в базу!");
- } catch (SQLException e) {
- System.out.println("Can't get connection: " + e.getMessage());
- }
- }
- }
- import javafx.application.Application;
- import javafx.fxml.FXMLLoader;
- import javafx.scene.Group;
- import javafx.scene.Parent;
- import javafx.scene.Scene;
- import javafx.scene.layout.BorderPane;
- import javafx.stage.Stage;
- public class Main extends Application {
- Stage primaryStage;
- @Override
- public void start(Stage primaryStage) throws Exception{
- this.primaryStage = primaryStage;
- Group group = new Group();
- Parent content = FXMLLoader.load(getClass().getResource("sample.fxml"));
- BorderPane root = new BorderPane();
- root.setCenter(content);
- group.getChildren().add(root);
- primaryStage.setTitle("Комплексная система контроля технического сотояния насосного оборудования СК");
- primaryStage.setScene(new Scene(group,987,813));
- primaryStage.show();
- primaryStage.setOnCloseRequest(event -> primaryStage.close());
- }
- public static void main(String[] args) {
- launch(args);
- }
- }
- <?xml version="1.0" encoding="UTF-8"?>
- <?import javafx.scene.control.*?>
- <?import javafx.scene.layout.*?>
- <AnchorPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"
- fx:controller="Controller">
- <TextField fx:id="textField1" layoutX="82.0" layoutY="82.0" prefHeight="25.0" prefWidth="182.0"
- AnchorPane.leftAnchor="82.0"/>
- <TextField fx:id="textField5" layoutX="379.0" layoutY="82.0" prefHeight="25.0" prefWidth="182.0"
- AnchorPane.rightAnchor="72.0"/>
- <TextField fx:id="textField2" layoutX="82.0" layoutY="144.0" prefHeight="25.0" prefWidth="182.0"/>
- <TextField fx:id="textField6" layoutX="346.0" layoutY="144.0" prefHeight="25.0" prefWidth="182.0"/>
- <TextField fx:id="textField3" layoutX="82.0" layoutY="205.0" prefHeight="25.0" prefWidth="182.0"/>
- <TextField fx:id="textField7" layoutX="346.0" layoutY="205.0" prefHeight="25.0" prefWidth="182.0"/>
- <TextField fx:id="textField4" layoutX="82.0" layoutY="269.0" prefHeight="25.0" prefWidth="182.0"/>
- <TextField fx:id="textField8" layoutX="346.0" layoutY="269.0" prefHeight="25.0" prefWidth="182.0"/>
- <Button fx:id="button" layoutX="81.0" layoutY="325.0" mnemonicParsing="false" onAction="#result" prefHeight="38.0"
- prefWidth="449.0" text="Рассчитать!"/>
- <Label layoutX="82.0" layoutY="44.0" prefHeight="17.0" prefWidth="165.0" text="Введите значение вибрации:"/>
- <Label layoutX="346.0" layoutY="44.0" prefHeight="17.0" prefWidth="182.0" text="Введите значение температуры:"/>
- </AnchorPane>
- Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1774)
- at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1657)
- at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
- at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
- at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
- at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
- at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
- at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
- at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
- at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
- at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
- at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
- at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
- at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
- at javafx.event.Event.fireEvent(Event.java:198)
- at javafx.scene.Node.fireEvent(Node.java:8413)
- at javafx.scene.control.Button.fire(Button.java:185)
- at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
- at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
- at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
- at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
- at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
- at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
- at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
- at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
- at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
- at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
- at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
- at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
- at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
- at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
- at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
- at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
- at javafx.event.Event.fireEvent(Event.java:198)
- at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
- at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
- at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
- at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
- at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:381)
- at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
- at java.security.AccessController.doPrivileged(Native Method)
- at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$354(GlassViewEventHandler.java:417)
- at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
- at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:416)
- at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
- at com.sun.glass.ui.View.notifyMouse(View.java:937)
- at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
- at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
- at java.lang.Thread.run(Thread.java:748)
- Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
- at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
- at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1769)
- ... 48 more
- Caused by: javafx.fxml.LoadException:
- /C:/Users/%d0%95%d0%ba%d0%b0%d1%82%d0%b5%d1%80%d0%b8%d0%bd%d0%b0/IdeaProjects/Vibro/out/production/Vibro/res.fxml
- at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2601)
- at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2579)
- at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
- at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
- at Controller.press(Controller.java:97)
- ... 58 more
- Caused by: java.lang.NullPointerException
- at Controller.initialize(Controller.java:78)
- at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
- ... 61 more
- Process finished with exit code 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement