I\'m trying to set the button text using this code:
public void initialize(URL location, ResourceBundle resources) {
// TODO Auto-generated method stub
/
Are you sure your elements are actually not null and that your assert statements are actually doing what they're supposed to? Click me for info on using assert statements. Make sure your variable declarations are left as @FXML private Button fx_btnHourUp;
and that you never instantiate the button yourself via fx_btnHourUp = new Button();
.
Are you using SceneBuilder 2.0 to create your fxmls? It's a program that allows you to design fxmls while avoiding many of these kinds of common errors. Download link here.