0

here is my controller code,

public class HelloController {
@FXML
public Button login_button;
@FXML
public TextField  message;

@FXML
public void login(ActionEvent e) {
    message.setText("hai ");
}

}

here is my ui code ,

public class HelloController {
@FXML
public Button login_button;
@FXML
public TextField  message;

@FXML
public void login(ActionEvent e) {
    message.setText("hai ");
}

}

i am new to the javafx please guys help me to resolve my problems

  • You've posted the same class twice. In any case you should definitely add more context, e.g. the stacktrace of the exception you get (and point out which of the lines you've posted it refers to). You might also want to read [ask] and the [FAQ](https://meta.stackoverflow.com/questions/251225/faq-index-for-stack-overflow) in general. – Thomas Jan 13 '22 at 06:45

0 Answers0