I have a text file with 4 lines of random words, line for line, and I need to be able to read each line and display it to its text field (First line goes into first text field, etc), but it is only reading the last line and displaying it into any text field.

"myfile.txt"  

one

two

three

onetwothree

```
TextField label1Text = new TextField();
TextField label2Text = new TextField();
TextField label3Text = new TextField();

load.setOnAction(new EventHandler<ActionEvent>() {
    @Override
    public void handle(ActionEvent l) {

        String line = ""; 
        try {
        BufferedReader reader = new BufferedReader(new FileReader("myfile.txt"));

            while ((line = reader.readLine()) != null) {

              label1Text.setText(line);
              label2Text.setText(line);
              label3Text.setText(line);
              labelO2Text.setText(line);   
            }

        } 

        catch (FileNotFoundException e) {
         e.printStackTrace();
        }

        catch (IOException e) {
            e.printStackTrace();

        }
    }

    });

    primaryStage.show();

}    

```

}