Не могу получить данные из Label и TextField JavaFx

У меня есть небольшая сценка, где нужно ввести два значения TextField(первый скрин), и при нажатие на кнопку "включить", метод checkWrongText() проверяет введены ли вообще данные, если введены, то будет происходить другая операция(я пока её не установил, не могу решить ещё эту проблему), если данные не введены он посылает в Label(wrongText) сообщение "Заполните все поля" или "Введите корректное значение". Сперва у меня выводило ошибку nullPonterException, но потом я иницилизировал эти значения, и пытался проверить их с помощью System.out.println(), но выводит какие-то символы. Вот скрин где будет выводиться Label(wrongText), два TextField и кнопки:введите сюда описание изображения

Код контроллера:

package com.example.banzeyprogramm;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.image.ImageView;
import java.awt.Desktop;
import java.net.URI;

import java.io.IOException;



public class HelloController {

    @FXML
    private ImageView banzeyImage;

    @FXML
    private  TextField bindButton;

    @FXML
    private  TextField cpsButton;

    @FXML
    private Button discordButton;

    @FXML
    private ImageView discordImage;

    @FXML
    private ImageView menuImage;

    @FXML
    private Button offButton;

    @FXML
    private Button onButton;

    @FXML
    private Button vkBut;

    @FXML
    private ImageView vkImage;

    @FXML
    private  Label wrongText;

    @FXML
    void buttonOpenOff(ActionEvent event) {

    }

    @FXML
    void buttonOpenOn(ActionEvent event) throws IOException {
        checkWrongText();
    }

    @FXML
    void myDiscord(ActionEvent event) throws Exception{
        URI uri = new URI("https://discord.gg/ahs6Qx3fv2");
        Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;
        if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {
            try {
                desktop.browse(uri);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }

    @FXML
    void myVK(ActionEvent event) throws Exception{
        URI uri = new URI("https://vk.com/daniilmuso");
        Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;
        if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {
            try {
                desktop.browse(uri);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }


    private  void checkWrongText() throws IOException {
        // HelloApplication newSlide = new HelloApplication();
        if (bindButton.getText().toString() != null && cpsButton.getText().toString() != null) {
            wrongText.setText("Кликер установлен");
            if (bindButton.getText().isEmpty() && bindButton.getText().isEmpty()) {
                wrongText.setText("Заполните все поля");
            } else {
                wrongText.setText("Введите корректное значение");
            }
            wrongText.setText("Кликер установлен");
        }
    }
}

Код fxml:

<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.Cursor?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.text.Font?>

<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="480.0" prefWidth="706.0" style="-fx-background-color: #282828;" xmlns="http://javafx.com/javafx/18" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.banzeyprogramm.Controller">
   <children>
      <ImageView fx:id="menuImage" fitHeight="480.0" fitWidth="730.0" layoutX="-1.0" pickOnBounds="true" preserveRatio="true">
         <image>
            <Image url="@../../../images/imageOne.png" />
         </image>
      </ImageView>
      <Button fx:id="discordButton" layoutX="96.0" layoutY="415.0" mnemonicParsing="false" onAction="#myDiscord" prefHeight="51.0" prefWidth="59.0">
         <graphic>
            <ImageView fx:id="discordImage" fitHeight="41.0" fitWidth="65.0" pickOnBounds="true" preserveRatio="true">
               <image>
                  <Image url="@../../../images/imageDis.png" />
               </image>
               <cursor>
                  <Cursor fx:constant="HAND" />
               </cursor>
            </ImageView>
         </graphic>
         <cursor>
            <Cursor fx:constant="HAND" />
         </cursor></Button>
      <Button fx:id="vkBut" layoutX="14.0" layoutY="416.0" mnemonicParsing="false" onAction="#myVK" prefHeight="49.0" prefWidth="82.0">
         <graphic>
            <ImageView fx:id="vkImage" fitHeight="49.0" fitWidth="58.0" pickOnBounds="true" preserveRatio="true">
               <image>
                  <Image url="@../../../images/imageTwo.png" />
               </image>
               <cursor>
                  <Cursor fx:constant="HAND" />
               </cursor>
            </ImageView>
         </graphic>
         <cursor>
            <Cursor fx:constant="HAND" />
         </cursor>
      </Button>
      <Label layoutX="58.0" layoutY="144.0" prefHeight="36.0" prefWidth="449.0" text="Введите кнопку для бинда" textFill="#8b00ff">
         <font>
            <Font name="System Bold" size="25.0" />
         </font>
      </Label>
      <TextField fx:id="bindButton" layoutX="406.0" layoutY="153.0" onAction="#bindButtonAction" prefHeight="26.0" prefWidth="151.0" promptText="F" style="-fx-background-color: #8b00ff;" />
      <ImageView fx:id="banzeyImage" fitHeight="123.0" fitWidth="228.0" layoutX="244.0" layoutY="-31.0" pickOnBounds="true" preserveRatio="true">
         <image>
            <Image url="@../../../images/banzayBlack.png" />
         </image>
      </ImageView>
      <Label layoutX="217.0" layoutY="222.0" prefHeight="36.0" prefWidth="177.0" text="Cps в секунду" textFill="#8b00ff">
         <font>
            <Font name="System Bold" size="25.0" />
         </font>
      </Label>
      <TextField fx:id="cpsButton" layoutX="406.0" layoutY="227.0" onAction="#cpsButtonAction" prefHeight="26.0" prefWidth="151.0" promptText="1 cps" style="-fx-background-color: #8b00ff;" />
      <Button fx:id="onButton" cache="true" depthTest="ENABLE" layoutX="19.0" layoutY="284.0" mnemonicParsing="false" onAction="#buttonOpenOn" prefHeight="47.0" prefWidth="666.0" text="включить" textFill="#282828">
         <font>
            <Font size="20.0" />
         </font>
         <cursor>
            <Cursor fx:constant="HAND" />
         </cursor>
      </Button>
      <Button fx:id="offButton" cache="true" depthTest="ENABLE" layoutX="19.0" layoutY="342.0" mnemonicParsing="false" onAction="#buttonOpenOff" prefHeight="47.0" prefWidth="666.0" text="выключить" textFill="#282828">
         <font>
            <Font size="20.0" />
         </font>
         <cursor>
            <Cursor fx:constant="HAND" />
         </cursor>
      </Button>
      <Label fx:id="wrongText" layoutX="406.0" layoutY="122.0" prefHeight="22.0" prefWidth="279.0" text="sdfsdfsdf" textFill="#8b00ff">
         <font>
            <Font size="15.0" />
         </font></Label>
   </children>
</AnchorPane>

package com.example.banzeyprogramm;

import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;



import java.io.IOException;

public class HelloApplication extends Application {
    @Override
    public void start(Stage stage) throws IOException {
        FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
        Image icon = new Image("C:\\Users\\Даниил\\eclipse-newEraMus\\platform\\BanzeyProgramm\\src\\main\\resources\\images\\icon.png");
        stage.getIcons().add(icon);
        Scene scene = new Scene(fxmlLoader.load(), 706, 480);
        scene.getStylesheets().add("style.css");
        stage.setTitle("Banzey");
        stage.setResizable(false);
        stage.setScene(scene);
        stage.show();
    }



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

Ответы (0 шт):